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.

30 lines
781 B

#include <stdio.h>
using namespace std;
void order1_1()
{
for (int j = 1;j <= 4;j++)
{
for (int i = 0;i < 30;i++)printf(" ");
if (j == 1)printf("1.Input\n");
else if (j == 2)printf("2.Output\n");
else if (j == 3)printf("3.Order\n");
else if (j == 4)printf("4.Quit\n");
}
}
void order1_2(char a1)
{
if (a1 == &apos;i&apos;)printf("You are tring to Input info\n");
else if (a1 == &apos;o&apos;)printf("You are tring to Output info\n");
else if (a1 == &apos;m&apos;)printf("You are tring to Make things ordered\n");
else if (a1 == &apos;q&apos;)printf("You are about to Quit\n");
else printf("Wrong input\n");
}
int main()
{
order1_1();
char a1;
scanf_s("%c", &a1);
order1_2(a1);
return 0;
}