首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

新手求帮助cout有关问题

2012-04-12 
新手求帮助cout问题#includeiostreamusing namespace stdint main(){char wordacoutword++++wo

新手求帮助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

热点排行