How would I convert this code to C++?
string[] strarr = {\"ram\",\"mohan\",\"sita\"}; foreach(string str in strarr) { listbox.items.add(str); }
In C++0x you have
for(string str: strarr) { ... }
But till then use ordinary for loop.