Click here to Skip to main content
15,914,010 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Updating and changing Title Bar in Application Pin
oRion17-Sep-02 22:27
oRion17-Sep-02 22:27 
Questionhow to recognize word from sentence? Pin
wey_horng17-Sep-02 5:12
wey_horng17-Sep-02 5:12 
AnswerRe: how to recognize word from sentence? Pin
Shaun Wilde17-Sep-02 5:20
Shaun Wilde17-Sep-02 5:20 
GeneralRe: how to recognize word from sentence? Pin
Bart Robeyns17-Sep-02 5:30
Bart Robeyns17-Sep-02 5:30 
GeneralRe: how to recognize word from sentence? Pin
Shaun Wilde17-Sep-02 5:39
Shaun Wilde17-Sep-02 5:39 
GeneralRe: how to recognize word from sentence? Pin
wey_horng17-Sep-02 7:30
wey_horng17-Sep-02 7:30 
GeneralRe: how to recognize word from sentence? Pin
Ryan B.17-Sep-02 9:01
Ryan B.17-Sep-02 9:01 
Generalparsing word from sentence? Pin
wey_horng18-Sep-02 4:05
wey_horng18-Sep-02 4:05 
I think you should be misunderstanding, or else it is my fault. i suppose to post my coding and lets you all expertise and checking the error for me. However, the system now is workable for space. one more question is if i would like to get some particular word, lets say 3rd word from the sentence. then what should i add inside?

the following is the coding:



#include <iostream>

using std::cout;
using std::endl;
using std::cin;

#include <cstring>

int main()
{
char string[256];
char *tokenPtr;
cout << "Enter sentence\n";
cin.getline(string,sizeof(string),'\n');

cout << "The string to be tokenized is:\n" << string
<< "\n\nThe tokens are:\n";

tokenPtr = strtok( string, " " );

while ( tokenPtr != NULL ) {
cout << tokenPtr << '\n';
tokenPtr = strtok( NULL, " " );
}

return 0;
}
Generalscrollbars in a richedit Pin
ns17-Sep-02 4:36
ns17-Sep-02 4:36 
GeneralWord in C++ Pin
insanely42017-Sep-02 4:24
insanely42017-Sep-02 4:24 
GeneralRe: Word in C++ Pin
jmkhael17-Sep-02 6:48
jmkhael17-Sep-02 6:48 
GeneralRe: Word in C++ Pin
Bill Wilson17-Sep-02 10:27
Bill Wilson17-Sep-02 10:27 
GeneralRe: Word in C++ Pin
insanely42017-Sep-02 11:00
insanely42017-Sep-02 11:00 
GeneralWinSock: How do I get the Host Name Pin
Robert Scheckle17-Sep-02 3:44
Robert Scheckle17-Sep-02 3:44 
GeneralRe: WinSock: How do I get the Host Name Pin
Bart Robeyns17-Sep-02 4:43
Bart Robeyns17-Sep-02 4:43 
GeneralWorkspace Model Pin
Ryan B.17-Sep-02 3:41
Ryan B.17-Sep-02 3:41 
GeneralRe: Workspace Model Pin
Ryan B.17-Sep-02 8:54
Ryan B.17-Sep-02 8:54 
GeneralRe: Workspace Model Pin
Bill Wilson17-Sep-02 11:21
Bill Wilson17-Sep-02 11:21 
Questionhow to get input from user Pin
ns17-Sep-02 3:04
ns17-Sep-02 3:04 
AnswerRe: how to get input from user Pin
Ravi Bhavnani17-Sep-02 3:31
professionalRavi Bhavnani17-Sep-02 3:31 
GeneralRe: how to get input from user Pin
ns17-Sep-02 3:38
ns17-Sep-02 3:38 
GeneralRe: how to get input from user Pin
Ravi Bhavnani17-Sep-02 3:36
professionalRavi Bhavnani17-Sep-02 3:36 
GeneralRe: how to get input from user Pin
ns17-Sep-02 3:59
ns17-Sep-02 3:59 
QuestionBIG OR LITTLE QUESTION? Pin
ZBUILDER17-Sep-02 2:46
ZBUILDER17-Sep-02 2:46 
AnswerRe: BIG OR LITTLE QUESTION? Pin
jhwurmbach17-Sep-02 2:54
jhwurmbach17-Sep-02 2:54 

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.