123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
// student records class example #include <iostream> #include <string> using namespace std; class students { private : double mark; string student; public: void info(string student, double mark); void returninfo(); }; void students::info(string student , double mark) { cout << " Please input the name of the student " << endl; cin >> student; cout<< " Please input the students grade " << endl; cin >> mark; } void students::returninfo() { cout << " The students name is " << student << endl; cout << " The students grade is " << mark << endl; } int main() { students* stu = new students; stu->info(string student, double mark) // line causing issue !!!!!!!!!!!! stu->returninfo(); delete (stu); system("pause"); return 0; }