string s="technical college technical college day college day college"; stringstream sst(s); string words[20]; int iw=-1; -----> while(sst) sst >> words[++iw];