Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C++ Arrays and Loops

string cars[4] = {"Volvo", "BMW", "Ford", "Mazda"};
for (int i = 0; i < 4; i++) {
  cout << cars[i] << "
";
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Arrays #Loops
ADD COMMENT
Topic
Name
5+1 =