View Single Post
Old Apr 18th, 2007, 4:50 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Here's why you need to use them: these pages are HTML. That means they discard extra whitespace. That means, further, that all the formatting and indentation in your code goes bye-bye. Code tags retain the formatting. Does that make sense?

Now, if you want to clear the stream BEFORE you try to get a character, would you put the clearing BEFORE the get, or AFTER the get? Personally, I would put it BEFORE the get, but that's just me. Does that make sense?

You are new to the forum. Most people would consider reading the rules/FAQ the polite thing to do, and heed advice like using code tags. Is any of this making sense????? :beard:
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote