fstream

C++ column output via cout

There is such a task: generate a matrix NxN with random numbers, find the maximum in each column of the resulting matrix, and ... ting to do differently).P.S.: the program uses fstream, and the same thing should be output there. Windows OS, Visual studio

In what cases do standard C++ threads report errors via exceptions?

I can't find an answer to the following question, in which cases std::fstream reports errors via exceptions, and in which cas ... it only generate an exception if the corresponding error state flag has already been set (i.e., when the error is repeated)?

C++. Read the file twice. Fstream Library

Good time of day. There was such a question. How can I read a file twice in the library fstream without closing it? I found ... f you do not open the file with the function fopen from the library stdio.h Is there an alternative for the fstream library?

Measuring file size in C++ using fstream

In my task, I needed to check the file size by searching on the forumal collected the function is_Empty, but it turns out tha ... "Pust"; return; } ifstream fin; fin.open(namefile); while(!fin.eof()){ //Тут дальше идёт код считывания из файла

Explain why seekg and seekp don't work

Previously, these functions were not required. The file was opened for reading, the data was written to the vector, then the ... file << i->_login << " " << i->_password << endl; //перезапись } container.clear(); }

Fstream C++doesn't work

I'm learning how to work with files in C++ I did absolutely everything as in the example. The console displays the message Go ... { cout << " Good!"; fout << "Мои данные"; } fout.close(); }

C++ COM using fstream

I read data from the com port I did it using ReadFile, which I never seriously worked with before, the code is just incompreh ... t<<t; } } The program stops at the line in. read(&t,sizeof(t)); and does not respond to input data.