请你们谁帮我看看为什么说我标示符未定义,我用c++编写的
这是我的main函数#include<iostream>
#include<cstring>
#include"student.h"
#include"birthday.h"
using namespace std;
int main ()
{
char name[20],num[20],id[20],sex;
int year,month,day;
cin>>year>>month>>day;
bir student_bir(year,month,day);
cin>>name>>num>>id>>sex;
student student_ip(name,num,sex,id);//这里说我student为error C2065: 'student' : undeclared identifier我的这个类在头文件#include"student.h"中 。。。为什么这样说我错了啊!
student student_ip(student_bir);
student_ip.show();
return 0;
}
头文件#include"student.h"
#include<iostream>
using namespace std;
#include"birthday.h"
#ifdef _STUDENT_H_
#define _STUDENT_H_
class student{
public:
student(char *nam,char *nu,char a,char * d);
student(student &p);
student(bir p1);
~student(){}
void show();
private:
char name[20], number[20],sex,id[20];
bir p2;
static int count;
};
#endif
[ 本帖最后由 李雪莲 于 2013-4-4 16:19 编辑 ]