Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 1st, 2012  |  syntax: None  |  size: 0.77 KB  |  hits: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. #ifndef USER_H
  2. #define USER_H
  3. #include <iostream>
  4. #include <string>
  5. #define MAX_USERS 5000
  6. using namespace std;
  7.  
  8. class User
  9. {
  10.     int id;
  11.     string name;
  12.     int age;
  13.     string uname;
  14.     string email;
  15.     string pword;
  16. public:
  17.     void setName(string nm)
  18.     {
  19.         name = nm;
  20.     }
  21.     void setAge(int ag)
  22.     {
  23.         age = ag;
  24.     }
  25.     void setUname(string um)
  26.     {
  27.         uname = um;
  28.     }
  29.     void setEmail(string em)
  30.     {
  31.         email = em;
  32.     }
  33.     void setPword(string pw)
  34.     {
  35.         pword = pw;
  36.     }
  37.     void setId(int i)
  38.     {
  39.         id = i;
  40.     }
  41.     string getName() {return name;}
  42.     int getAge() {return age;}
  43.     string getUname() {return uname;}
  44.     string getEmail() {return email;}
  45.     string getPword() {return pword;}
  46. }users[MAX_USERS];
  47. #endif //USER_H