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;
|
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()
|
void yourAccount()
|
||||||
{
|
{
|
||||||
cout<<"name: yourName"<<endl;
|
cout<<"name: yourName"<<endl;
|
||||||
cout<<"other stuff related to this user\n\n"<<endl;
|
cout<<"other stuff related to this user\n\n"<<endl;
|
||||||
//somehow display user information
|
//somehow display user information
|
||||||
int choice;
|
// int choice;
|
||||||
cin>>choice;
|
// cin>>choice;
|
||||||
cout<<"0. Return to main menu"<<endl;
|
cout<<"0. Return to main menu"<<endl;
|
||||||
cout<<"\n\nEnter choice:";
|
cout<<"\n\nEnter choice:";
|
||||||
switch(choice)
|
|
||||||
case 0: displayMainMenu();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void goToBoard()
|
void goToBoard()
|
||||||
{
|
{
|
||||||
cout<<"Board x"<<endl;
|
cout<<"Board x"<<endl;
|
||||||
int choice;
|
// int choice;
|
||||||
cin>>choice;
|
// cin>>choice;
|
||||||
cout<<"0. Return to main menu"<<endl;
|
cout<<"0. Return to main menu"<<endl;
|
||||||
cout<<"\n\nEnter choice:";
|
cout<<"\n\nEnter choice:";
|
||||||
switch(choice)
|
|
||||||
case 0: displayMainMenu();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void boardList()
|
void boardList()
|
||||||
{
|
{
|
||||||
cout<<"Showing all boards:"<<endl;
|
cout<<"Showing all boards:"<<endl;
|
||||||
int choice;
|
// int choice;
|
||||||
cin>>choice;
|
// cin>>choice;
|
||||||
cout<<"0. Return to main menu"<<endl;
|
cout<<"0. Return to main menu"<<endl;
|
||||||
cout<<"\n\nEnter choice:";
|
cout<<"\n\nEnter choice:";
|
||||||
switch(choice)
|
|
||||||
case 0: displayMainMenu();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,7 +49,6 @@ void BoardMenu()
|
||||||
cout<<"\n\nEnter choice:";
|
cout<<"\n\nEnter choice:";
|
||||||
switch(choice)
|
switch(choice)
|
||||||
{
|
{
|
||||||
case 0: displayMainMenu();
|
|
||||||
case 1: boardList();
|
case 1: boardList();
|
||||||
case 2: goToBoard();
|
case 2: goToBoard();
|
||||||
}
|
}
|
||||||
|
@ -75,24 +58,22 @@ void showMessages()
|
||||||
{
|
{
|
||||||
cout<<"Messages will be displayed soon"<<endl;
|
cout<<"Messages will be displayed soon"<<endl;
|
||||||
//do some stuff to display messages
|
//do some stuff to display messages
|
||||||
int choice;
|
// int choice;
|
||||||
cin>>choice;
|
// cin>>choice;
|
||||||
cout<<"0. Return to main menu"<<endl;
|
cout<<"0. Return to main menu"<<endl;
|
||||||
cout<<"\n\nEnter choice:";
|
cout<<"\n\nEnter choice:";
|
||||||
switch(choice)
|
|
||||||
case 0: displayMainMenu();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void showGroups()
|
void showGroups()
|
||||||
{
|
{
|
||||||
cout<<"Groups will be displayed soon"<<endl;
|
cout<<"Groups will be displayed soon"<<endl;
|
||||||
//do some stuff to display groups
|
//do some stuff to display groups
|
||||||
int choice;
|
// int choice;
|
||||||
cin>>choice;
|
// cin>>choice;
|
||||||
cout<<"0. Return to main menu"<<endl;
|
cout<<"0. Return to main menu"<<endl;
|
||||||
cout<<"\n\nEnter choice:";
|
cout<<"\n\nEnter choice:";
|
||||||
switch(choice)
|
|
||||||
case 0: displayMainMenu();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void mainMenu()
|
void mainMenu()
|
||||||
|
|
Reference in a new issue