Update DBApp.cpp
This commit is contained in:
parent
2c80d78773
commit
6b3730a7f6
1 changed files with 47 additions and 1 deletions
48
DBApp.cpp
48
DBApp.cpp
|
@ -37,4 +37,50 @@ int main()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
void yourAccount()
|
||||||
|
{
|
||||||
|
cout<<"name: yourName"<<endl;
|
||||||
|
}
|
||||||
|
|
||||||
|
void mainMenu()
|
||||||
|
{
|
||||||
|
cout<<"***************"<<endl;
|
||||||
|
cout<<"** Main Menu **"<<endl;
|
||||||
|
cout<<"***************\n\n"<<endl;
|
||||||
|
cout<<"1. Your account"<<endl;
|
||||||
|
cout<<"2. Boards"<<endl;
|
||||||
|
cout<<"3. Messages"<<endl;
|
||||||
|
cout<<"4. Groups\n"<<endl;
|
||||||
|
cout<<"Enter choice: ";
|
||||||
|
int choice;
|
||||||
|
cin>>choice;
|
||||||
|
if (choice == 1)
|
||||||
|
{
|
||||||
|
yourAccount();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
cout<<"***************************************"<<endl;
|
||||||
|
cout<<"Welcome to our BBS "<<endl;
|
||||||
|
cout<<"***************************************"<<endl;
|
||||||
|
|
||||||
|
cout<<"** Enter BBS **"<<endl;
|
||||||
|
cout<<"1. Login";
|
||||||
|
cout<<"2. Request new account\n\n";
|
||||||
|
cout<<"Enter choice";
|
||||||
|
int choice;
|
||||||
|
cin>>choice;
|
||||||
|
|
||||||
|
|
||||||
|
if (choice == 1)
|
||||||
|
{
|
||||||
|
mainMenu();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Reference in a new issue