Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/08/10 17:15
Read: times


 
#178479 - REALLY confusing
Responding to: ???'s previous message
and same with your keys:
Save This Codeif (temp==key_A) { //14 is return/enter, key 15 is escape

How silly is it that I need to scan wildly through comments just to figure out that key_A is enter and key_B is ESC? What would have happened if you instead had used key_Enter and key_Esc?


REALLY confusing
first, no issue, but why define what is OBVIOUS ?

#define key_A 'A'
#define key_B 'B'

Save This Codeif (temp=='A') { //14 is return/enter, key 15 is escape
removes the need to find out that key_A is 'A'
there CAN be advantages to what you are doing but then it should be as Per suggest (key_return)

second
we now have 'key_A' 'A' and key 14
KEEP THE STYLE AND NAMES/DESCRIPTIONS CONSTANT!!!! in comments and code

Erik

List of 9 messages in thread
TopicAuthorDate
Please assess the c code written by me            01/01/70 00:00      
   Lots of details to improve on            01/01/70 00:00      
      REALLY confusing            01/01/70 00:00      
      timer delay review            01/01/70 00:00      
      what about this timer program            01/01/70 00:00      
         Still a lot of work to do            01/01/70 00:00      
            I have implemented many of the suggestions            01/01/70 00:00      
               Still not thinking about your symbol names            01/01/70 00:00      
                  variable name dilema            01/01/70 00:00      

Back to Subject List