دوستان مشکل این برنامه چیه (با بورلند اجرا می کنم).
کد:#include<iostream>
#include<string>
#include<conio.h>
class Gradebook
{
public:
void displayMessage( string coursename )
{
cout << "the name is:" << coursename << endl;
}
}; //end class Gradebook
int main()
{
Gradebook myGradebook;
string Nameofcourse;
getline(cin, Nameofcourse);
cout << endl;
myGradebook.displayMessage(Nameofcourse);
getch();
return 0;
}
برای این خط ارور میده: [HTML]getline(cin, Nameofcourse);[/HTML]