Im having a problem with error message c4430 according to MSDN the warning is created when an int is not declared. Overlooking ,y code I can't find the problem is there something I am missing? here is the code
#include<iostream>
#include<string>
using namespace std;
class student
{
public:
~student();
student();
student(string n,int i);
void student_name();
int student_id();
void view_name();
int view_id();
private:
string sName;
int sId;
};
student::student()
{
string sName="NewStudent";
}
student::student_id()
{
int sId=000;
}
student::student(string n, int i)
{
n=sName;
i=sId;
}
void student::student_name()
{
cout<<"What is the Student's Name?"<<endl;
cin>>sName;
cout<<"What is the Student's Identification Number?"<<endl;
cin>>sId;
}