problem with classes in header files

hello? i have problem:

#ifndef AC_H
#define AC_H
using namespace std;

class Student
{
private:
int sid;
char sname[80];
public:
void setSid(int sid);
void setSname(char *s);
int getSid();
void getSname(char *sname);
};
#endif


----------------------------

error C2011: 'Student' : 'class' type redefinition ('{' after 'class Student').
----------------------------

what have i do?
It's difficult to say from this piece of code. You'll have to provide some code from the file where you include this header file. Do you declare anything else that is also called "Student"?

BTW: You don't need, and shouldn't have using namespace std here.
Topic archived. No new replies allowed.