标题:程序运行不了
取消只看楼主
孤独城堡
Rank: 2
等 级:论坛游民
帖 子:55
专家分:14
注 册:2008-9-27
结帖率:100%
 问题点数:0 回复次数:2 
程序运行不了
程序代码:
#include<stdio.h>
int main(int argc,char *argv[])
{
    int count;
    printf("The command line has %d arguments:\n",argc-1);
    for(count=1;count<argc;count++)
        printf("%d:%s\n",count,argv[count]);
    printf("\n");
    return 0;
}

请问该程序要怎么运行?我用的是“VC++6.0”软件
搜索更多相关主题的帖子: color count 
2013-05-08 14:06
孤独城堡
Rank: 2
等 级:论坛游民
帖 子:55
专家分:14
注 册:2008-9-27
得分:0 
按‘CTRL+F5’怎么运行结果不对
2013-05-08 14:16
孤独城堡
Rank: 2
等 级:论坛游民
帖 子:55
专家分:14
注 册:2008-9-27
得分:0 
回复 3楼 xufan
谢了,现在知道要怎么运行了,不过我还是说一下吧,我直接按“ctrl+F5”它就显示

书上是输入
C>repeat Resistance is futile

输出
程序代码:
The command line has 3 arguments:
1:Resistance
2:is
3:futile
2013-05-08 15:00



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-406508-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.961288 second(s), 9 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved