- 分享
- 0
- 人气
- 0
- 主题
- 61
- 帖子
- 175
- UID
- 482352
- 积分
- 552
- 阅读权限
- 17
- 注册时间
- 2012-3-23
- 最后登录
- 2012-10-21
- 在线时间
- 738 小时
      
|
为什么我debug不到的?
#include <stdio.h>
#include <stdlib.h>
void main()
{
char ID[11],name[51],gender[2];
int year;
float CGPA;
//Input
printf("\nEnter your Student ID :%c",ID);
printf("\nEnter your Name :%c",name);
printf("\nEnter your gender(M/F) :%c",gender);
printf("\nEnter your year enrolled :%4d",year);
printf("\nEnter your CGPA :%.2f",CGPA);
//Output
printf("ID Num :%c\n",ID);
printf("Name :%c\n",name);
printf("Gender :%c\n",gender);
printf("Year :%d\n",year);
printf("CFPA :%.2f\n",CGPA);
system("pause");
} |
|