I have problem with getline()
.
I tried many examples and read other solutions, but that didn't solve my problem. I still have information 'getline: identifier not found'
.
I included
<stdio.h> <tchar.h> <iostream> <conio.h> <stdlib.h> <fstream>
and still nothing.
#include "stdafx.h"
using namespace std;
int main(int argc, _TCHAR* argv[])
{
string line;
getline(cin, line);
cout << "You entered: " << line << endl;
}
What do I need to do now?
I use Windows 7 64 bit and Visual Studio 2013.
<string>
would be the file in which you findstd::getline
– Aculeus