Hi,
I'm trying to use cin to get input in a specific format.
Say I have this string as an input: "+ Baraq 112540783 AB1234"
I want my variables to look like that:
name = "Baraq"
id = 112540783
book = "AB1234"
now I am sure there is something with providing the format of the input " %s %s %s" or something like that, just not sure how to use it.
I have tried to find an example but couldn't get how to use it.
Thank you (: