How would one go ahead and write parts of a string inside a for-loop? Let's say I have this code:
string str[64];
for( int i = 0; i < 64; i = i + 4 )
{
cin >> str[i];
}
Everytime it enters the loop, I want to write four elements of the string. How would I go ahead and to that, since the code I wrote does not work? :P
Thanks :)
Try this