谁能帮我看看这个程序有什么问题
谁能帮我看看这个程序有什么问题,为什么会提示C:\Users\Administrator\Desktop\未命名1.cpp: In function `int main()':C:\Users\Administrator\Desktop\未命名1.cpp:20: error: statement cannot resolve address of overloaded function
C:\Users\Administrator\Desktop\未命名1.cpp:21: error: statement cannot resolve address of overloaded function
C:\Users\Administrator\Desktop\未命名1.cpp:22: error: statement cannot resolve address of overloaded function
C:\Users\Administrator\Desktop\未命名1.cpp:23: error: statement cannot resolve address of overloaded function。
#include<iostream>
using namespace std;
class Student{
private:
int num;
int sorce;
public:
void Setdata(){
cin>>num;
cin>>sorce;
}
void display(){
cout<<"num="<<num<<endl;
cout<<"sorce"<<sorce<<endl;
};
};
Student stud1,stud2;
int main(){
stud1.Setdata;
stud1.display;
stud2.Setdata;
stud2.display;
system("pause");
return 0;
}