Код: Выделить всё
int main ()
{
freopen ("myfile.txt","w",stdout);
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/21232517/writing-to-both-terminal-and-file-c[/url]Код: Выделить всё
int main ()
{
freopen ("myfile.txt","w",stdout);
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/21232517/writing-to-both-terminal-and-file-c[/url]