Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- pair<ifstream, ofstream> MakeStreams(const string& prefix)
- {
- // ifstream input(prefix+ " .in");
- // ofstream output(prefix+ " .out");
- //
- // return {move(input), move(output)};
- // // input, output -> pair ctor -> returned temporary
- return {ifstream(prefix+ " .in"),ofstream(prefix+ " .out")};
- // input, output -> pair ctor -> returned temporary
- }
- ifstream MakeInputStream(const string& prefix)
- {
- // auto streams = MakeStreams(prefix);
- // return move(streams.first);
- return MakeStreams(prefix).first;
- }
- int main()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement