Update DBApp.cpp

This commit is contained in:
William Bracho Blok 2015-09-29 22:02:25 -05:00
parent 2c80d78773
commit 6b3730a7f6

View file

@ -38,3 +38,49 @@ 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();
}
}