|
-
April 27th, 2005, 12:30 AM
#1
compare the char & substr()
I compare the chars:
char cInLine[i][30];
...
if((cInLine[i][2]==":")&&(cInLine[i][5]==":")&&(cInLine[i][11]==";")&&(cInLine[i][14]==":")&&(cInLine[i][17]==":"))
{ .....},
but, I is told that "'==' : no conversion from 'char *' to 'int'
This conversion requires a reinterpret_cast, a C-style cast or function-style cast
e:\My Study\My VC++\temp for caption of movie\caption\captionDlg.cpp(260) : error C2040: '==' : 'int' differs in levels of indirection from 'char [2]' ",
by the way, how can I get some chars from a string of cInLine[i]?
thanks!
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
|