Hi,
I have a little problem. I'm trying to read a character string from the keyboard. So I have put:
Code:
 
#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);
}
but when I compile it says: error C3861: 'getline': identifier not found

can anyone explain why this is and do i have any alternatives please.
Thank you :O)