hii everyone :))
I want to write a prog. that the user can enter e.g (new 1112236) in the black screen ,, then the prog. should go to the (new)func. and create a new node with that ID ..soo how can I split the strings ?and how can I define that >>>????
thanks ^_^

Re: how to split strings in c++ ? 80 80

You could use a stringstream. The extraction operator will use the space as a delimiter and you can extract the string, "new", and the number to separate variables.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.