You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
893 B

#include <stdio.h>
void Show_The_Main_interface()
{
//显示主界面
for(int i=1;i<=30;i++)
{
printf(" ");
}
printf("1.Input\n");
for(int i=1;i<=30;i++)
{
printf(" ");
}
printf("2.Output\n");
for(int i=1;i<=30;i++)
{
printf(" ");
}
printf("3.Order\n");
for(int i=1;i<=30;i++)
{
printf(" ");
}
printf("4.Quit\n");
}
void Output_Prompts(char choice)
{
//输出提示信息
if(choice=='i')
{
printf("You are trying to Input info\n");
}
else if(choice=='o')
{
printf("You are trying to Output info\n");
}
else if(choice=='m')
{
printf("You are trying to Make things ordered\n");
}
else if(choice=='q')
{
printf("You are about to Quit\n");
}
else
{
printf("Wrong input\n");
}
}
int main()
{
//显示主界面
Show_The_Main_interface();
//用户输入
char choice;
scanf("%c",&choice);
//输出提示信息
Output_Prompts(choice);
}