Foreach loop in C++ equivalent of C#

Viewed 149623

How would I convert this code to C++?

string[] strarr = {"ram","mohan","sita"};    
foreach(string str in strarr) {
  listbox.items.add(str);
}
11 Answers
Related