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

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.
*/

  

posted @ 2017-02-20 23:10  KennyRom  阅读(281)  评论(0编辑  收藏  举报