The same goes with cout<< and cout. ()
My friend gave me some of his code. And I've been looking through it and throughout the whole thing. He's been using something like "cout.setf()" or cin.getline(). What's the difference between using either of them?
p.s.(Im pretty new to C++)
I think it would be best to consult the reference section of this site for the exact differences between using them. They each have a purpose, and some of the methods you've mentioned (cout.setf(), for example), doesn't actually output anything at all.