Answers for "for auto cpp"

C++
1

range based for loop c++

for (<variable_declaration> : expression){
//statements
}
Posted by: Guest on May-25-2020
0

auto i cpp

auto n=1;
// this will make the type int, and you can't change trough the program;
cout << n;
// OR
auto n="how you doin'";
cout << n;
Posted by: Guest on October-05-2021
-1

c++ auto loop

for(auto x: myVector){
	cout<< x << " ";
}
Posted by: Guest on April-25-2021

Browse Popular Code Answers by Language