Hi,
I have a little problem. I'm trying to read a character string from the keyboard. So I have put:
but when I compile it says: error C3861: 'getline': identifier not foundCode:#include <iostream> #include <string.h> using namespace std; void main(int argc, char **argv) { glutInit(&argc, argv); glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA); string name; getline(nameOfCourse, 50); }
can anyone explain why this is and do i have any alternatives please.
Thank you :O)