Posts by Massa • 230 points
2 posts
-
4
votes5
answers17889
viewsA: Why choose C instead of C++ or C++ instead of C?
My answer to your question would be: Only use C++ With the following caveat: unless there is some reason why you are thank you using C... What would be those reasons? the lack of C++ compiler for…
-
0
votes1
answer121
viewsA: How do the istreams of a string work?
Simple -- the operator is implemented more or less like this (simplifying muuuito!): istream& operator>>(istream& input, string& s) { char c; s.clear(); while( input.get(c)…