|
|
вернуться в форумОбщий форумHow to assign cin, cout to files in C++?? Re: How to assign cin, cout to files in C++?? #include <fstream.h> int main() { ifstream in("1.dat"); cin=in; ofstream out=("1.sol"); cout=out; .... return 0; } P.S. But in online judge fstream.h maybe not present. |
|
|