Click here to Skip to main content
15,884,176 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: string parsing Pin
pix_programmer23-Nov-11 16:57
pix_programmer23-Nov-11 16:57 
GeneralRe: string parsing Pin
robin70023-Nov-11 17:15
robin70023-Nov-11 17:15 
GeneralRe: string parsing Pin
pix_programmer23-Nov-11 17:28
pix_programmer23-Nov-11 17:28 
GeneralRe: string parsing Pin
robin70023-Nov-11 17:35
robin70023-Nov-11 17:35 
GeneralRe: string parsing Pin
«_Superman_»23-Nov-11 17:43
professional«_Superman_»23-Nov-11 17:43 
GeneralRe: string parsing Pin
robin70023-Nov-11 17:48
robin70023-Nov-11 17:48 
GeneralRe: string parsing Pin
«_Superman_»23-Nov-11 18:05
professional«_Superman_»23-Nov-11 18:05 
GeneralRe: string parsing Pin
pix_programmer23-Nov-11 17:46
pix_programmer23-Nov-11 17:46 
I've provided you a link with source code. Use the formula
in the printf statement inside the while loop.

char str[] = "Your string goes here";
char * pch;
printf ("Looking for the '#' character in \"%s\"...\n",str);
pch=strchr(str,'s');
while (pch!=NULL)
{
printf ("found at %d\n",pch-str+1);
pch=strchr(pch+1,'s');
}
pch is the required string.
AnswerRe: string parsing Pin
Richard MacCutchan23-Nov-11 22:14
mveRichard MacCutchan23-Nov-11 22:14 
AnswerRe: string parsing Pin
Stefan_Lang24-Nov-11 23:17
Stefan_Lang24-Nov-11 23:17 
QuestionRe: string parsing Pin
David Crow26-Nov-11 6:44
David Crow26-Nov-11 6:44 
QuestionEscape out double quote Pin
jkirkerx23-Nov-11 10:12
professionaljkirkerx23-Nov-11 10:12 
AnswerRe: Escape out double quote Pin
Albert Holguin23-Nov-11 10:42
professionalAlbert Holguin23-Nov-11 10:42 
AnswerRe: Escape out double quote Pin
Graham Breach23-Nov-11 10:43
Graham Breach23-Nov-11 10:43 
GeneralRe: Escape out double quote Pin
jkirkerx23-Nov-11 11:07
professionaljkirkerx23-Nov-11 11:07 
QuestionReading Save File Problem Pin
idbee2k323-Nov-11 9:13
idbee2k323-Nov-11 9:13 
SuggestionRe: Reading Save File Problem Pin
Albert Holguin23-Nov-11 9:31
professionalAlbert Holguin23-Nov-11 9:31 
AnswerRe: Reading Save File Problem Pin
David Crow26-Nov-11 6:50
David Crow26-Nov-11 6:50 
QuestionUsing Main to grab command line arguments if it doesn't already exist? Pin
Lucidation23-Nov-11 6:15
Lucidation23-Nov-11 6:15 
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Albert Holguin23-Nov-11 7:21
professionalAlbert Holguin23-Nov-11 7:21 
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Chris Meech23-Nov-11 7:22
Chris Meech23-Nov-11 7:22 
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Chuck O'Toole23-Nov-11 7:43
Chuck O'Toole23-Nov-11 7:43 
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Software_Developer23-Nov-11 7:52
Software_Developer23-Nov-11 7:52 
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Chris Losinger23-Nov-11 8:41
professionalChris Losinger23-Nov-11 8:41 
AnswerRe: Using Main to grab command line arguments if it doesn't already exist? Pin
Chuck O'Toole23-Nov-11 9:36
Chuck O'Toole23-Nov-11 9:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.