Parsing a String in C
Posted on 2011-03-05
I'm hoping this is going to be really simple, but for some reason I can't seem to make it work.
I'm working in Visual Studio 2010 Express, and I'm trying to write a really simple C++ form application.
Basically, I want the user to input a string into a text box, and then I'm going to split up that string that the user enters and display parts of it in various other text boxes on the form.
To be more specific, let's say that the user inputs "Hello, World!" into the text box and clicks OK (the clicking is what will initialize my data parsing).
I know how to access the ENTIRE string of "Hello, World!" very very easily, it's just like this:
(Note: I've labeled the text box txtbxMainText).
Now, how do I pull out just "World" or just "or" or any other part of that string easily?
Does this make sense?