Re: [Dev-C++] declaring a integer vairable
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Alfred P. R. <al...@ya...> - 2005-02-18 19:50:30
|
I concur. C/C++ can be self-documenting if you follow Per's advice. Otherwise it can be the most inscrutable code to understand and debug. I've had the two year problem, BTW! --- Per Westermark <pw...@ia...> wrote: <snip> > When declaring variables, always make sure that their names describes > the > variable function in a good way, i.e. > > int number_of_customers; > int remaining_attempts; > int kilobytes_transmitted; > int customer_idx; > ... > > Then you can read your source code two years from now, and understand > what > it does. <snip> ===== Alfred P. Reaud |