COLLEGE.CPP
上传用户:wszmarenbt
上传日期:2013-04-26
资源大小:2552k
文件大小:1k
源码类别:

Windows编程

开发平台:

Visual C++

  1. //THE PROGRAM IS TO TEST THE USES OF THE CLASSES OF COLLEGE
  2. //FILE COLLEGE.CPP
  3. #include "College.h"
  4. int main(void)
  5. {
  6. STUDENT STU;
  7. PROFESSOR PRO;
  8. WORKER WOR;
  9. /*STUDENT RECORD*/
  10. STU.INSERT_NAME("ZHANG SAN");
  11. STU.INSERT_SEX("FEMALE");
  12. STU.INSERT_IDENTIFIER("123456789");
  13. STU.INSERT_BIRTHDAY("1979/1/1");
  14. STU.INSERT_AGE(20);
  15. STU.INSERT_ADDRESS("BGD 100 BEIJING");
  16. STU.INSERT_STUDENT_ID("12345");
  17. STU.INSERT_DORMITORY_NUM("8-3-225");
  18. STU.INSERT_MAJOR("COMPUTER SCIENCE");
  19. STU.INSERT_LEVEL(5);
  20. /*PROFESSOR RECORD*/
  21. PRO.INSERT_NAME("LI SI");
  22. PRO.INSERT_SEX("MALE");
  23. PRO.INSERT_IDENTIFIER("11223344");
  24. PRO.INSERT_BIRTHDAY("1940/1/1");
  25. PRO.INSERT_AGE(60);
  26. PRO.INSERT_ADDRESS("111222333 ABCDE CHAOYANG");
  27. PRO.INSERT_DEPARTMENT("3-3-3");
  28. PRO.INSERT_WORKTIME(6);
  29. PRO.INSERT_SALARY(10000);
  30. PRO.INSERT_TEACH_MAJOR("MATH");
  31. PRO.INSERT_SEARCH_NAME("THE METHOD FOR CALCULATING");
  32. PRO.INSERT_GRA_NUM(30);
  33. /*WORDER RECORD*/
  34. WOR.INSERT_NAME("WANG WU");
  35. WOR.INSERT_SEX("MALE");
  36. WOR.INSERT_IDENTIFIER("44556677");
  37. WOR.INSERT_BIRTHDAY("1970/1/1");
  38. WOR.INSERT_AGE(30);
  39. WOR.INSERT_ADDRESS("234156 EFGHI HAIDIAN");
  40. WOR.INSERT_DEPARTMENT("10-3-6");
  41. WOR.INSERT_WORKTIME(10);
  42. WOR.INSERT_SALARY(1000);
  43. WOR.INSERT_WORK_TYPE("CLEANER");
  44. clrscr();
  45. STU.PRINT();
  46. cout<<"n";
  47. PRO.PRINT();
  48. cout<<"n";
  49. WOR.PRINT();
  50. getch();
  51. return 0;
  52. }