Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

C +++ loop

//I think this is a better way for a for loop
//for like going through arrays or something
//hope you like it :)
//be sure to do #include <set>


int main()
{
  set<char> letters = {'X', 'Y', 'Z'};
  for (auto itr = letters.begin(); itr != letters.end(); ++itr){
    cout << *itr << endl;
  }
}
Source by www.programiz.com #
 
PREVIOUS NEXT
Tagged: #C #loop
ADD COMMENT
Topic
Name
4+3 =