How to copy a string to array string spare with space?
Thank you !
string ="TOM MARY PETER JOHN";
change to
*s[0] = "TOM"
*s[1] = "MARY"
*s[2] = "PETER"
*s[3] = "JOHN"
can anyone give me an example? thx!!
How to copy a string to array string spare with space?
Thank you !
string ="TOM MARY PETER JOHN";
change to
*s[0] = "TOM"
*s[1] = "MARY"
*s[2] = "PETER"
*s[3] = "JOHN"
can anyone give me an example? thx!!
look up strtok() in your help files.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi
thx!!~
Last edited by DramaKing; 01-25-2002 at 09:01 PM.