0

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

Edited by shahera.arafat

2
Contributors
1
Reply
21
Views
3 Years
Discussion Span
Last Post by tinstaafl
0

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.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.