|
|
|
|
#include <iostream>
|
|
|
|
|
#include "person/base/Person.h"
|
|
|
|
|
#include "person/students/Graduate.h"
|
|
|
|
|
#include "person/TeachAssistant.h"
|
|
|
|
|
|
|
|
|
|
int main() {
|
|
|
|
|
/*
|
|
|
|
|
* <EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ĵ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>õ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Դ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ó<EFBFBD><EFBFBD><EFBFBD>GBK<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>UTF8<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>أ<EFBFBD>
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>úñ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̨<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>ĿΪCMake<EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD>Ϊ<EFBFBD><EFBFBD><EFBFBD>з<EFBFBD><EFBFBD>㽨<EFBFBD><EFBFBD>ʹ<EFBFBD><EFBFBD>VStudio<EFBFBD><EFBFBD><EFBFBD><EFBFBD>clion<EFBFBD><EFBFBD>֧<EFBFBD><EFBFBD>cmake<EFBFBD><EFBFBD>IDE<EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ŀ<EFBFBD><EFBFBD><EFBFBD>Ѳ<EFBFBD><EFBFBD>Թ<EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
// to avoid garbled when output Chinese character
|
|
|
|
|
// <EFBFBD><EFBFBD>ֹ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|
|
|
|
setlocale(LC_ALL, "zh-CN");
|
|
|
|
|
|
|
|
|
|
Person baseInformation("id233333", "Lag Seeing", Person::SEX_MALE, "ident23333", Date(2002, 9, 6));
|
|
|
|
|
|
|
|
|
|
Person adviserBaseInformation("id0000000", "Goos Suede", Person::SEX_MALE, "ident000000", Date(1992, 1, 1));
|
|
|
|
|
Teacher adviser(adviserBaseInformation, "<EFBFBD><EFBFBD>ʦ", "BEE-HIVE");
|
|
|
|
|
|
|
|
|
|
TeachAssistant teachAssistant(121, baseInformation, "<EFBFBD><EFBFBD>֪<EFBFBD><EFBFBD>ʲôרҵ", adviser, "<EFBFBD><EFBFBD><EFBFBD><EFBFBD>", "BEE-HIVE");
|
|
|
|
|
|
|
|
|
|
std::cout << teachAssistant.toString() << '\n';
|
|
|
|
|
|
|
|
|
|
std::cout << "\nover. If Chinese character can't be display correctly, please check the file encoding. (GBK)\n";
|
|
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
|
}
|