How would I convert this code to C++?
string[] strarr = {\"ram\",\"mohan\",\"sita\"}; foreach(string str in strarr) { listbox.items.add(str); }
Boost has a macro that will do this for you.
http://www.boost.org/doc/libs/1_44_0/doc/html/foreach.html