That code sure looks like a strcpy() to me, maybe you should look into it.
string line;
char str[BUFSIZ];
1.
Murtan is absolutely right when he says that declaration of
str[BUFSIZ];
int array_words[10];
should be before the loop where the content of 'str' is copied into 'line',same goes with array_words[10]
2.As the declarations of 'str' and 'line' are
not ,C-styled strings,i had to use a for loop.Perhaps,
AdRock tried using
with
string line and got stuck, that's how the whole thread began.
Last edited by zalezog; Jan 16th, 2009 at 5:47 am.