搜索
编程论坛
→
开发语言
→
C++论坛
→
『 C++教室 』
→ 请教个小问题
标题:
请教个小问题
取消只看楼主
saltss
等 级:
新手上路
帖 子:16
专家分:0
注 册:2008-9-8
楼主
问题点数:0 回复次数:1
请教个小问题
int y=2;
for(int i=0;i<10;i++){
int x=y<<i;
cout<<i<<","<<x<<endl;
}
0,2
1,4
2,8
3,16
4,32
5,64
6,128
7,256
8,512
9,1024
Press any key to continue
int x=y<<i;的<<是什么意思?
2008-09-08 15:17
saltss
等 级:
新手上路
帖 子:16
专家分:0
注 册:2008-9-8
第
2
楼
得分:0
谢谢
2008-09-08 16:17
2
1/1页
1
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-232114-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 0.090426 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved