64,636
社区成员
发帖
与我相关
我的任务
分享
AgendaManagementSystem* AgendaManagementSystem::GetInstance()
{
if (NULL == m_pAgenda)
{
m_pAgenda = new AgendaManagementSystem();
}
return m_pAgenda;
}
#include "stdafx.h"
#include "AgendaManagementSystem.h"
#include <iostream>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
const string strQuitFlag = "quit";
string strLine;
cout << "Welcome using AgendaManagementSystem!" << endl;
while (true)
{
getline(cin, strLine);
cout << strLine << endl;
if (strQuitFlag == trim_string(strLine))
{
break;
}
AgendaManagementSystem::GetInstance()->ProcessCommand(strLine);
}
cout << "Thank you for using AgendaManagementSystem!" << endl;
system("Pause");
return 0;
}