Autor Thema: Codestil  (Gelesen 20088 mal)

kevin

  • Administrator
  • Beiträge: 2 767
    • Profil anzeigen
Gespeichert
« Antwort #20 am: 04. April 2006, 18:41 »
Also logisch fände ich es so:
//Konstanten ohne Klammern
#define MONITOR_WIDTH 800
#define LOG_MON 500

// Ausdrücke mit Klammern
#define LOGO_WIDTH  (MONITOR_WIDTH - LOG_MON)
#define LOGO_SIZE (LOGO_WIDTH * LOGO_HEIGHT * FARBTIEFE)
Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end.

 

Einloggen