首页 > 编程语言 > 详细

[Cpp primer] range for (c++11)

时间:2017-02-21 00:29:52      阅读:244      评论:0      收藏:0      [点我收藏+]
for (declaration : expression)
	statement;
/*
This statement will iterate through the elements in the given expression.
expression: an object of a type that represents a sequence
declaration: defines the variable that we‘ll use to access the underlying elements in the sequence.
*/

  

[Cpp primer] range for (c++11)

原文:http://www.cnblogs.com/KennyRom/p/6422048.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!