0
std::cout writes to stdout file you can do the following on Linux and Windows #include <stdio.h> #include <iostream> int main() { freopen("test.txt", "w", stdout); std::cout << "Hello strange stdout\n"; } to change it back use the following taken from here #include <stdio.h> #incl...