
Untitled
By: a guest on
May 1st, 2012 | syntax:
None | size: 0.77 KB | hits: 10 | expires: Never
#ifndef USER_H
#define USER_H
#include <iostream>
#include <string>
#define MAX_USERS 5000
using namespace std;
class User
{
int id;
string name;
int age;
string uname;
string email;
string pword;
public:
void setName(string nm)
{
name = nm;
}
void setAge(int ag)
{
age = ag;
}
void setUname(string um)
{
uname = um;
}
void setEmail(string em)
{
email = em;
}
void setPword(string pw)
{
pword = pw;
}
void setId(int i)
{
id = i;
}
string getName() {return name;}
int getAge() {return age;}
string getUname() {return uname;}
string getEmail() {return email;}
string getPword() {return pword;}
}users[MAX_USERS];
#endif //USER_H