Current location - Recipe Complete Network - Complete cookbook of home-style dishes - How to choose menu in C language programming program? For example, press 1 to execute one part and press 2 to execute another part.
How to choose menu in C language programming program? For example, press 1 to execute one part and press 2 to execute another part.
Switch (value) {

Case? 1:

{

password

}

Break;

Case? 2:

{

password

}

Break;

Default? :

{

password

}

}