Horje
c++ for in Code Example
c++ for in
// just example for explanation :)
	
	// vector containt strings
	vector<string> USERS;
	
	// take string from 'USERS' 
	// under name 'user' in each time :)
	for(string user : USERS){
    	std::cout << user << std::endl;
    }
range based for loop c++
array<int, 5> values = {1, 2, 3, 4, 10};
// the type declaration below must be consistent with the array type
for (int x : values){ //we use a colon instead of in
cout << x << endl;
}




Cpp

Related
hashmap c++ Code Example hashmap c++ Code Example
how to get last element of set in c++ Code Example how to get last element of set in c++ Code Example
parallelize for loop c++ Code Example parallelize for loop c++ Code Example
c++ print current time Code Example c++ print current time Code Example
print space in array cpp Code Example print space in array cpp Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9