hey, I'm switching from cstdio to iostream but am having problems finding documentation on what I want to learn. could someone here tell me exactly what cin's sync() and clear() methods do? are they both of type void, do they take any parameters?
edit: I've also two questions about cout's flush method:
1) why must the buffer be flushed and when is an appropriate time to do this?
2) is it faster to use endl or "'\n'" with flush?