发信人: aqwang (ASTIA), 信区: Programming 标 题: A C++ Question 发信站: BBS 未名空间站 (Tue Jan 9 14:56:06 2007) int main() { int a=1; cout<<a++<<a<<++a; return 0; } Can you predict the output? And why? -- ※ 来源:·BBS 未名空间站 http://mitbbs.com·[FROM: 24.238.]
发信人: kukutf (五脚蟹★酷酷豆腐), 信区: Programming 标 题: Re: A C++ Question 发信站: BBS 未名空间站 (Tue Jan 9 15:11:38 2007), 转信 又来月经贴。 jhq有说明的。基本上不可预测。看编译器自己高兴怎么做的 【 在 aqwang (ASTIA) 的大作中提到: 】 : int main() : { : int a=1; : cout<<a++<<a<<++a; : return 0; : } : Can you predict the output? And why? -- ※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 128.32.]
发信人: Deling (流浪歌手-屁股要绑枕头), 信区: Programming 标 题: Re: A C++ Question 发信站: BBS 未名空间站 (Tue Jan 9 15:13:23 2007), 转信 what's the point, anyway? 【 在 aqwang (ASTIA) 的大作中提到: 】 : int main() : { : int a=1; : cout<<a++<<a<<++a; : return 0; : } : Can you predict the output? And why? -- ※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 71.231.]
发信人: aqwang (ASTIA), 信区: Programming 标 题: Re: A C++ Question 发信站: BBS 未名空间站 (Tue Jan 9 15:31:03 2007) Sorry, I didn't know it's 月经贴. I just came across this one when reading books... 【 在 kukutf (五脚蟹★酷酷豆腐) 的大作中提到: 】 : 又来月经贴。 : jhq有说明的。基本上不可预测。看编译器自己高兴怎么做的 -- ※ 来源:·BBS 未名空间站 http://mitbbs.com·[FROM: 24.238.]
发信人: Savant (期待奇迹中), 信区: Programming 标 题: Re: A C++ Question 发信站: BBS 未名空间站 (Tue Jan 9 16:58:38 2007), 转信 then it's time to trash the book you are reading 【 在 aqwang (ASTIA) 的大作中提到: 】 : Sorry, I didn't know it's 月经贴. I just came across this one when reading : books... -- ※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 146.151.]
发信人: neodreamer (aladdin), 信区: Programming 标 题: Re: A C++ Question 发信站: BBS 未名空间站 (Sun Jan 14 20:50:42 2007), 转信 why it's predictable, I use gcc and the output is 1 2 3 【 在 kukutf (五脚蟹★酷酷豆腐) 的大作中提到: 】 : 又来月经贴。 : jhq有说明的。基本上不可预测。看编译器自己高兴怎么做的 -- ※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 128.4.]
发信人: thrust (Thrust Jaeina), 信区: Programming 标 题: Re: A C++ Question 发信站: BBS 未名空间站 (Mon Jan 15 03:42:49 2007), 转信 please read 精华区. 【 在 neodreamer (aladdin) 的大作中提到: 】 : why it's predictable, : I use gcc and the output is : 1 2 3 -- ※ 来源:·BBS 未名空间站 mitbbs.com·[FROM: 69.108.]
发信人: WEKingpro (口味蛇), 信区: Programming 标 题: Re: A C++ Question 发信站: BBS 未名空间站 (Mon Jan 15 20:42:25 2007) VC++ 6: 1, 1, 1 -- ※ 来源:·BBS 未名空间站 http://mitbbs.com·[FROM: 66.233.]
版权所有,未名空间(mitbbs.com),since 1996 Site Map - Contact Us - Terms and Conditions - Privacy Policy