Click here to Skip to main content
15,926,596 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: template specialization for functions Pin
Michael Dunn21-Jul-05 8:49
sitebuilderMichael Dunn21-Jul-05 8:49 
GeneralRe: template specialization for functions Pin
peterchen21-Jul-05 8:53
peterchen21-Jul-05 8:53 
GeneralAfxLockGlobals no more exits in MFC 8 Pin
Saurabh_Gupta21-Jul-05 6:40
Saurabh_Gupta21-Jul-05 6:40 
GeneralParsing a string using std::string Pin
LCI21-Jul-05 5:52
LCI21-Jul-05 5:52 
GeneralRe: Parsing a string using std::string Pin
David Crow21-Jul-05 7:11
David Crow21-Jul-05 7:11 
GeneralRe: Parsing a string using std::string Pin
John R. Shaw21-Jul-05 7:44
John R. Shaw21-Jul-05 7:44 
GeneralRe: Parsing a string using std::string Pin
LCI21-Jul-05 8:31
LCI21-Jul-05 8:31 
GeneralRe: Parsing a string using std::string Pin
John R. Shaw21-Jul-05 9:04
John R. Shaw21-Jul-05 9:04 
LCI wrote:
What would be the return on the find?

The index/offset of the first character in the string you are searching that matches what you are searching for.

LCI wrote:
Would it return -1 if failed?

It returns std::string::npos, which is -1.

LCI wrote:
How is the operator[] used?
// simpilist method
for( size_type i=0; i<mystring.size(); ++i )
    char c = mystring[i]; // just like a C-string


As for parsing; the simpilist method is to use loops, as you suggested.

Documentation:
1) "The C++ Programming Language" by Bjarne Stroustrup (The Creator of C++), whatever the latest vesion is.
2) Search the web for keywords like: "Bjarne Stroustrup", "P.J. PLAUGER" (The guy who (probably) wrote the template library you're using), STL (The Standard Template Library), etc... . There are lots of sights that cover this subject.


INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
GeneralPropertySheet Wizard Question Pin
picazo21-Jul-05 5:01
picazo21-Jul-05 5:01 
GeneralRe: PropertySheet Wizard Question Pin
Graham Bradshaw21-Jul-05 6:56
Graham Bradshaw21-Jul-05 6:56 
GeneralRe: PropertySheet Wizard Question Pin
Anonymous21-Jul-05 8:14
Anonymous21-Jul-05 8:14 
GeneralCDialogBar Help Pin
Budric B.21-Jul-05 4:55
Budric B.21-Jul-05 4:55 
GeneralAlso.. Pin
Budric B.21-Jul-05 5:06
Budric B.21-Jul-05 5:06 
GeneralVC++ .NET saveFileDialog Pin
Freddie Code21-Jul-05 4:46
Freddie Code21-Jul-05 4:46 
GeneralRe: VC++ .NET saveFileDialog Pin
Anonymous21-Jul-05 4:55
Anonymous21-Jul-05 4:55 
GeneralRe: VC++ .NET saveFileDialog Pin
Freddie Code21-Jul-05 7:13
Freddie Code21-Jul-05 7:13 
GeneralRe: VC++ .NET saveFileDialog Pin
Freddie Code21-Jul-05 14:13
Freddie Code21-Jul-05 14:13 
General'/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification questions Pin
Anonymous21-Jul-05 4:15
Anonymous21-Jul-05 4:15 
GeneralRe: '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification questions Pin
peterchen21-Jul-05 8:55
peterchen21-Jul-05 8:55 
GeneralXML parse to get a single node Pin
LCI21-Jul-05 3:44
LCI21-Jul-05 3:44 
GeneralRe: XML parse to get a single node Pin
Alex_Y21-Jul-05 10:43
Alex_Y21-Jul-05 10:43 
GeneralRe: XML parse to get a single node Pin
LCI21-Jul-05 10:53
LCI21-Jul-05 10:53 
GeneralRe: XML parse to get a single node Pin
Alex_Y22-Jul-05 4:51
Alex_Y22-Jul-05 4:51 
Generalproblem with /clr switch Pin
DaveHuber21-Jul-05 3:31
DaveHuber21-Jul-05 3:31 
GeneralAdding in hex Pin
Halawlaws21-Jul-05 3:19
Halawlaws21-Jul-05 3: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.