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.

44 lines
894 B

#include<stdio.h>
void Input(int b[],float c[],float d[],float e[])/*<2A><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>*/
{
int i;
for(i=1;i<=3;i++)
scanf("%d%f%f%f",&b[i],&c[i],&d[i],&e[i]);
for(i=1;i<=3;i++)
printf("%d,%.1f,%.1f,%.1f\n",b[i],c[i],d[i],e[i]);
}
int main()
{
int i;
char a;
int b[1001];
float c[1001],d[1001],e[1001];
for(i=1;i<=30;i++)
printf(" ");
printf("1.Input\n");
for(i=1;i<=30;i++)
printf(" ");
printf("2.Output\n");
for(i=1;i<=30;i++)
printf(" ");
printf("3.Order\n");
for(i=1;i<=30;i++)
printf(" ");
printf("4.Quit\n");
scanf("%c",&a);
if(a=='i')
{
printf("Please input info of the three students:");
Input(b,c,d,e);
}
else if(a=='o')
printf("You are trying to Output info");
else if(a=='m')
printf("You are trying to Make things ordered");
else if(a=='q')
printf("You are about to Quit");
else
printf("Wrong input");
return 0;
}