I am wondering are the following code the same:
//first
string str; int num;
stringstream(str)>>num;
//second
string str; int num;
(stringstream)str>>num;
I tried to run them and they work. Can you tell me that's the difference between them? Or they're the same? Thanks a lot!!!