Created
December 22, 2015 00:57
-
-
Save whalemare/1829a2327079d00995c7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void printToFile(Polynom polynom) | |
{ | |
std::ofstream out("poly.txt"); | |
if (!out) | |
{ | |
cerr << "Ошибка открытия файла!"; | |
system("pause"); | |
system("cls"); | |
} | |
else | |
{ | |
out << polynom; // запишем уравнение в файл | |
out << "\nКонец."; | |
cout << polynom; | |
cout << "\nЗапись в файл выполнена успешно!"; | |
system("pause"); | |
system("cls"); | |
} | |
out.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment