Skip to content

Commit bfe6256

Browse files
readme-menu
1 parent 9091acf commit bfe6256

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

Menu functions/Menu-structures/Horizontal Menu.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ int main()
3333
//op array is the options
3434
string op_array[n] = {"Option 1","Option 2","Option 3"};
3535
//call
36-
string call = "Which option do you want to choose? \nPress [a/d] to change and [Enter] to choose\n\n";
36+
string call = "MENU_H \n\nPress [a/d] to change and [Enter] to choose\n\n";
3737

3838
//it doesn't matter the op value when he enters
3939
menu_h(call,op_array,n,op,color);
@@ -43,12 +43,15 @@ int main()
4343
switch (op)
4444
{
4545
case 0 :
46+
system("cls");
4647
cout <<"\n\nYou selected option 1.";
4748
break;
4849
case 1 :
50+
system("cls");
4951
cout <<"\n\nYou selected option 2.";
5052
break;
5153
default :
54+
system("cls");
5255
cout <<"\n\nYou selected option 3.";
5356
}
5457

Menu functions/Screenshots/Menu_h.png

15.8 KB
Loading

Menu functions/Screenshots/Menu_v.png

11.2 KB
Loading

0 commit comments

Comments
 (0)