yes. oh found it. I just read the example code. Sorry... Quick question, so, using cout and cin we can only separate data using space, tab, and new line. We can't customize it as in printf?
You can separate the data anyway you want with cout.
cout does not provide any implicit separators. You provide what you want.
Note that printf does not provide any implicit separators either.
yes I run the code. But error occur due to using std::string. After a while I decided to change it to cout and cin. Sorry, I'm completely new to this, just got my first lesson today. If it's not too bothering, can I get an example using cout and cin with / as the separator of the data? Sorry, if my English is weird, it's not my first language
The first form of getline in AbstractionAnon's link takes three parameter.
When text up to (and including) the '/' has been read from the stream, you can use >> to get the number.