Update DBAppV2.cpp
Some menu options based on the example. Still needs to be loopable
This commit is contained in:
parent
9b8b16d82a
commit
a961b0858d
1 changed files with 15 additions and 34 deletions
49
DBAppV2.cpp
49
DBAppV2.cpp
|
@ -3,53 +3,37 @@
|
|||
using namespace std;
|
||||
|
||||
|
||||
void displayMainMenu()
|
||||
{
|
||||
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: ";
|
||||
|
||||
}
|
||||
|
||||
|
||||
void yourAccount()
|
||||
{
|
||||
cout<<"name: yourName"<<endl;
|
||||
cout<<"other stuff related to this user\n\n"<<endl;
|
||||
//somehow display user information
|
||||
int choice;
|
||||
cin>>choice;
|
||||
// int choice;
|
||||
// cin>>choice;
|
||||
cout<<"0. Return to main menu"<<endl;
|
||||
cout<<"\n\nEnter choice:";
|
||||
switch(choice)
|
||||
case 0: displayMainMenu();
|
||||
|
||||
}
|
||||
|
||||
void goToBoard()
|
||||
{
|
||||
cout<<"Board x"<<endl;
|
||||
int choice;
|
||||
cin>>choice;
|
||||
// int choice;
|
||||
// cin>>choice;
|
||||
cout<<"0. Return to main menu"<<endl;
|
||||
cout<<"\n\nEnter choice:";
|
||||
switch(choice)
|
||||
case 0: displayMainMenu();
|
||||
|
||||
}
|
||||
|
||||
void boardList()
|
||||
{
|
||||
cout<<"Showing all boards:"<<endl;
|
||||
int choice;
|
||||
cin>>choice;
|
||||
// int choice;
|
||||
// cin>>choice;
|
||||
cout<<"0. Return to main menu"<<endl;
|
||||
cout<<"\n\nEnter choice:";
|
||||
switch(choice)
|
||||
case 0: displayMainMenu();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -65,7 +49,6 @@ void BoardMenu()
|
|||
cout<<"\n\nEnter choice:";
|
||||
switch(choice)
|
||||
{
|
||||
case 0: displayMainMenu();
|
||||
case 1: boardList();
|
||||
case 2: goToBoard();
|
||||
}
|
||||
|
@ -75,24 +58,22 @@ void showMessages()
|
|||
{
|
||||
cout<<"Messages will be displayed soon"<<endl;
|
||||
//do some stuff to display messages
|
||||
int choice;
|
||||
cin>>choice;
|
||||
// int choice;
|
||||
// cin>>choice;
|
||||
cout<<"0. Return to main menu"<<endl;
|
||||
cout<<"\n\nEnter choice:";
|
||||
switch(choice)
|
||||
case 0: displayMainMenu();
|
||||
|
||||
}
|
||||
|
||||
void showGroups()
|
||||
{
|
||||
cout<<"Groups will be displayed soon"<<endl;
|
||||
//do some stuff to display groups
|
||||
int choice;
|
||||
cin>>choice;
|
||||
// int choice;
|
||||
// cin>>choice;
|
||||
cout<<"0. Return to main menu"<<endl;
|
||||
cout<<"\n\nEnter choice:";
|
||||
switch(choice)
|
||||
case 0: displayMainMenu();
|
||||
|
||||
}
|
||||
|
||||
void mainMenu()
|
||||
|
|
Reference in a new issue