Facebook Sharer
选择您要替换的背景颜色:
【农历新年】背景图片:
个性化设定
 注册  找回密码
查看: 1841|回复: 0
打印 上一主题 下一主题

帮帮下!

[复制链接]

61

主题

0

好友

552

积分

青铜长老

Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7Rank: 7

跳转到指定楼层
1#
发表于 2012-5-15 10:27 PM |只看该作者 |倒序浏览
为什么我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");
}




收藏收藏0
您需要登录后才可以回帖 登录 | 注册

JBTALKS.CC |联系我们 |隐私政策 |Share

GMT+8, 2024-12-26 02:54 PM , Processed in 0.117710 second(s), 26 queries .

Powered by Discuz! X2.5

© 2001-2012 Comsenz Inc.

Ultra High-performance Dedicated Server powered by iCore Technology Sdn. Bhd.
Domain Registration | Web Hosting | Email Hosting | Forum Hosting | ECShop Hosting | Dedicated Server | Colocation Services
本论坛言论纯属发表者个人意见,与本论坛立场无关
Copyright © 2003-2012 JBTALKS.CC All Rights Reserved
合作联盟网站:
JBTALKS 马来西亚中文论坛 | JBTALKS我的空间 | ICORE TECHNOLOGY SDN. BHD.
回顶部