新手求帮助cout有关问题
新手求帮助cout问题
#include<iostream>
using namespace std;
int main()
{
char word='a';
cout<<word++<<++word;
}
显示值为bc
如果是 cout<<++word<<word++; 则是ca
求解释
------解决方案--------------------
请参考:
http://topic.csdn.net/u/20110826/09/601ebe9c-c2ae-4d63-a4e2-506c618bb654.html?59993
#include<iostream>
using namespace std;
int main()
{
char word='a';
cout<<word++<<++word;
}
显示值为bc
如果是 cout<<++word<<word++; 则是ca
求解释
------解决方案--------------------
请参考:
http://topic.csdn.net/u/20110826/09/601ebe9c-c2ae-4d63-a4e2-506c618bb654.html?59993