怎么用C语言 编一个登陆的系统 就是按相应数字能进入相应模块

来源:百度知道 编辑:UC知道 时间:2024/09/28 13:37:08
帮我把 这快的代码写出来好吗 谢谢了啊

#include<stdio.h>
void main(){
int i;
printf("*********input the number of the fuction you want to use**\n");
printf("********1.fuction1***************************************\n");
printf("********2.fuction2***************************************\n");
scanf("%d",&i);
switch(i){
case 1://do sth you want or use sub programe to deal with it
//fuction1

break;
case 2://fuction2

break;

}

}

直接用swtich就好了