Question 1: How do you clear(delete all elements), or erase only a part of a stringstream?
If you get a strinstream objetc like:
stringstream abc; abc<<"Hai"; cout<<abc.str()<<'\n'; abc<<23; cout<<abc.str()<<'\n';Will output 'hai' and after 'hai23'.How do you erase only 23 or clear both elements?
Question 2: How OO concepts like inheritance and polymorphism are handled in assembly?
I don't know too much asm, and I think it is only an abstraction of the compiler, but what OO results in assembly code?


Sign In
Create Account


Back to top










