C++小问题
#include<iostream>using namespace std;
int d=1;
void fun(int);
int main()
{
int a=3;
fun(a);
d+=a++;
cout<<d<<endl;
return 0;
}
void fun(int a)
{
int d=5;
d+=a++;
cout<<d<<"";
}
我用VS 2010编译 后
显示第一行 出现错误
错在哪呢???
2011-04-06 12:52
郁闷 我在6.0里面能调试过 在2010版里面就不行
2011-04-06 12:54
2011-04-06 17:10
#include"stdafx.h"
2011-04-06 23:48
2011-04-07 08:54
2011-04-07 19:52
2011-04-08 10:56