✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
#include <iostream.h>
#include <fstream.h>
int main ()
{
int i = 5, j = 10; double a = 25; char s [40];
strcpy (s, "Test");
ofstream outfile ( "c: \ tst.txt");
if (! outfile)
{ Cout << "Помилка створення файлу";
return 1; }
outfile << i << '' << j << '' << a << '' << s << endl;
outfile.close ();
}
(C++)