Неожиданное поведение функции getline в fstreamC++

Программы на C++. Форум разработчиков
Anonymous
Неожиданное поведение функции getline в fstream

Сообщение Anonymous »

Я компилирую и запускаю следующий код
#include
#include
#include
using namespace std;
void displayFile(const string& filename) {
ifstream file(filename);
if (file.is_open()) {
string line;
cout

Подробнее здесь: https://stackoverflow.com/questions/798 ... in-fstream

Вернуться в «C++»