15,440
社区成员
发帖
与我相关
我的任务
分享
#include <cstdlib>
#include <iostream>
using namespace std;
int fun(int a, int b)
{
return a+b;
}
int _tmain(int argc, char *argv[])
{
int k=1;
cout<<"fun(k,k++):"<<fun(k,k++)<<endl;
k = 1;
cout<<"fun(k++,k):"<<fun(k++,k)<<endl;
k = 1;
cout<<"fun(k,++k):"<<fun(k,++k)<<endl;
k = 1;
cout<<"fun(++k,k):"<<fun(++k,k)<<endl;
system("PAUSE");
return EXIT_SUCCESS;
}