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 ^_^

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.