[求助]这个程序怎么运行不了呀?
											#include<iostream.h>
void main(int argc,char *argv[])
{
    int n,i=0;
    while(argv[1][i]!='\0')
    { n=fun();i++;}
    cout<<n*argc<<endl;
    int fun()
{
    static int s=0;
    s+=1;
    return s;
}
#include<iostream.h>
void main(int argc,char *argv[])
{
    int n,i=0;
    while(argv[1][i]!='\0')
    { n=fun();i++;}
    cout<<n*argc<<endl;
    int fun()
{
    static int s=0;
    s+=1;
    return s;
}
 2006-12-13 19:11
	    2006-12-13 19:11
   2006-12-13 19:12
	    2006-12-13 19:12
  

 2006-12-13 19:34
	    2006-12-13 19:34
   2006-12-13 19:37
	    2006-12-13 19:37
  我真的不懂 宏带参的,你不妨教教我呀?
听说还要建什么文件名才能运行,还是在dos方式下,是这样吗?
在VC++6.0运行不了么?

 2006-12-13 20:08
	    2006-12-13 20:08
  可以运行 你可以参考一下我的帖子 我的就是这样做的 米人顶 你帮我顶顶好了 呵呵 里面有程序+源代码
http://bbs.bc-cn.net/viewthread.php?tid=109268
运行你使用VC++6.0也是可以的 使用它的DEBUG功能
就是alt+F7 然后在DEBUG参数里设置就可以了 不用写文件名的

 2006-12-13 20:12
	    2006-12-13 20:12