View Single Post
Old May 29th, 2006, 8:43 PM   #7
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
There's little point wasting a variable, 'response', when you're going to deep-six the input. The only purpose of the input is to make the program wait for a user signal. While a C++ compiler should provide a return for you, if you can't be sure (about your compiler and its compliance), how much does it cost to type, "return 0".
__________________
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