|
-
September 17th, 2002, 04:13 AM
#1
string Trouble
I was trying the foll: code
const char * Text = "CZARIUC=CHS,IND"; //pjtGetFirst();
int size = strlen(Text);
char *Dest = new char(size);
strcpy(Dest,Text);
char *token1 = strtok(Dest,"=");
if (token1=="CZARIUC")
cout<<token1; //But its not going to this statement at all.
Why? & what should I do to make it go..
Thanks in advance..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|