Click here to Skip to main content
15,898,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: The Noo-B Blues Pin
Ravi Bhavnani10-Mar-04 11:39
professionalRavi Bhavnani10-Mar-04 11:39 
GeneralRe: The Noo-B Blues Pin
Snyp10-Mar-04 11:41
Snyp10-Mar-04 11:41 
Generaldisplay tooltips on CToolBarCtrl Pin
bin892210-Mar-04 10:50
bin892210-Mar-04 10:50 
GeneralRe: display tooltips on CToolBarCtrl Pin
casid10-Mar-04 12:21
casid10-Mar-04 12:21 
GeneralNeed some help on ClistCtrl Control Pin
pavneet10-Mar-04 10:39
pavneet10-Mar-04 10:39 
GeneralRe: Need some help on ClistCtrl Control Pin
Michael Dunn10-Mar-04 12:08
sitebuilderMichael Dunn10-Mar-04 12:08 
GeneralParseing a string question. Pin
modeonetwo10-Mar-04 10:18
modeonetwo10-Mar-04 10:18 
GeneralRe: Parseing a string question. Pin
Branislav10-Mar-04 15:25
Branislav10-Mar-04 15:25 
Example.
/* strtok example */
#include <stdio.h>
#include <string.h>

int main ()
{
char str[] ="This is a sample string,just testing.";
char * pch;
printf ("Splitting string \"%s\" in tokens:\n",str);
pch = strtok (str," ");
while (pch != NULL)
{
printf ("%s\n",pch);
pch = strtok (NULL, " ,.");
}
return 0;
}

Output:
Splitting string "This is a sample string,just testing." in tokens:
This
is
a
sample
string
just
testing


Also in "getline (char* s, streamsize n );" streamsize n mean Characters are extracted until either (n - 1) characters have been extracted.
Good luck.
GeneralRe: Parseing a string question. Pin
David Crow11-Mar-04 3:36
David Crow11-Mar-04 3:36 
GeneralIOCTL Pin
Dev57810-Mar-04 9:57
Dev57810-Mar-04 9:57 
GeneralRe: IOCTL Pin
David Crow10-Mar-04 10:10
David Crow10-Mar-04 10:10 
GeneralXP style project Pin
krugger10-Mar-04 8:16
krugger10-Mar-04 8:16 
GeneralRe: XP style project Pin
Christian Graus10-Mar-04 8:27
protectorChristian Graus10-Mar-04 8:27 
GeneralRe: XP style project Pin
Neville Franks10-Mar-04 10:33
Neville Franks10-Mar-04 10:33 
GeneralRe: XP style project Pin
Anonymous10-Mar-04 12:22
Anonymous10-Mar-04 12:22 
Questionnon XP visual style when using chtmlview in VC6/VC7 ?? Pin
karmafx10-Mar-04 7:42
karmafx10-Mar-04 7:42 
AnswerRe: non XP visual style when using chtmlview in VC6/VC7 ?? Pin
Neville Franks10-Mar-04 10:39
Neville Franks10-Mar-04 10:39 
AnswerRe: non XP visual style when using chtmlview in VC6/VC7 ?? Pin
karmafx10-Mar-04 10:46
karmafx10-Mar-04 10:46 
GeneralRe: non XP visual style when using chtmlview in VC6/VC7 ?? Pin
Neville Franks10-Mar-04 12:33
Neville Franks10-Mar-04 12:33 
GeneralRe: non XP visual style when using chtmlview in VC6/VC7 ?? Pin
karmafx10-Mar-04 21:45
karmafx10-Mar-04 21:45 
GeneralCHange Gradient Colors in WIndow Caption Pin
doctorpi10-Mar-04 7:13
doctorpi10-Mar-04 7:13 
GeneralRe: CHange Gradient Colors in WIndow Caption Pin
Robert A. T. Káldy11-Mar-04 1:34
Robert A. T. Káldy11-Mar-04 1:34 
GeneralFileWriting -> Arrays Pin
nsaddock10-Mar-04 6:02
nsaddock10-Mar-04 6:02 
GeneralRe: FileWriting -&gt; Arrays Pin
David Crow10-Mar-04 10:06
David Crow10-Mar-04 10:06 
Generalclass std::basic_ofstream errors Pin
Andrew Hoole10-Mar-04 5:19
Andrew Hoole10-Mar-04 5:19 

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.