المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Array of Strings



C++ Programming
08-13-2010, 10:11 AM
Hi!
I've an array of strings called playerLst.It has many single space strings(e.g "SR Tendulkar"),three two space strings(e.g "AB de villiers") and one three space string(e.g "RE van der Merwe"). I've to split the strings into parts by the space as delimeter. I've split it like this:

vector players;
for(int j = 0; j<span class="code-keyword">