该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
我的程序:
#include"stdio.h"
main()
{
long int QQ_num;
char pet_name[20];
char true_name[20];
char sex;
int age;
char telephone_num[20];
char city[10];
char E_mail[50];
clrscr();
printf("please input QQ number:\n");
scanf("%ld",&QQ_num);
printf("please input pet_name:\n");
scanf("%s",pet_name);
printf("please input true_name:\n");
scanf("%s",true_name);
printf("please input sex:\n");
scanf("%c",&sex);
printf("please input age:\n");
scanf("%d",&age);
printf("please input telephone_num:\n");
scanf("%s",telephone_num);
printf("please input city:\n");
scanf("%s",city);
printf("please input E_mail:\n");
scanf("%s",E_mail);
printf("*******************************************\n");
printf(" My best friend--%s\n",pet_name);
printf("*******************************************\n");
printf("True name:\t%s\n",true_name);
printf("QQ number:\t%ld\n",QQ_num);
printf("Sex:\t\t%c\n",sex);
printf("Age:\t\t%d\n",age);
printf("Tel_number:\t%s\n",telephone_num);
printf("City:\t\t%s\n",city);
printf("E_mail:\t\t%s\n",E_mail);
printf("*******************************************\n");
}