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;
}
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;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us