Thread: Back my popular demand, greatness2 is here!!

  1. #16
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330
    "I'm an intermediate in C++ so I know what I'm doing"

    So why are you redefining simple keywords and declaring all items public in a class???

  2. #17
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    Ruflano, why are you making fun of echulo. If you are so "cool", you wouldn't be making programming groups. So don't bother making fun of people because it will just make u look dumb.

  3. #18
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230
    I agree, don't do this:
    Code:
    #define group class
    
    group program_variables
    {
      public:
      int mainresponse;
      unsigned int age;
      char name[25];
      char lstname[25];
      char gender[7];
      char personality[25];
      char hobby1[20], hobby2[20], hobby3[20];
      void calculator();
      void stalker();
      void watch_loop();
    };
    I wouldn't call that "style". I would call that uncessary and ridiculous. No offense or anything, but #define's are usually used for constant numbers, not for changing the look of the syntax of your program.

  4. #19
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    > My style of C++ coding is much different from you guys.

    Yes, yours is commonly called "wrong".

    Don't be a dick to chulo. I thought his joke was pretty funny.

  5. #20
    Unregistered
    Guest

    I am experienced, d00d

    Code:
    #include <iostream.h>
    
    #define PLEASE_PRINT_THIS cout
    #define AN_INTEGER_NUMBER int
    #define A_NUMBER_THAT_HAS_A_DECIMAL_POINT_THINGY double
    #define ADD_THESE_PLEASE +
    #define SUBTRACT_THESE_d00d -
    #define THE_BEGINNING_OF_MY_l33t_PROGRAM int main()
    #define GO_TO_THE_NEXT_LINE_MOFO endl
    #define CAN_YOU_RETURN_ZERO_PRETTY_PLEASE return 0
    
    THE_BEGINNING_OF_MY_l33t_PROGRAM
    {
       
       AN_INTEGER_NUMBER num = 5;
       AN_INTEGER_NUMBER answer;
       
       PLEASE_PRINT_THIS << "Yo d00d, I know what I'm doing" << GO_TO_THE_NEXT_LINE_MOFO;
       
       num = num ADD_THESE_PLEASE 5;
       
       answer = num SUBTRACT_THESE_d00d 10;
       
       PLEASE_PRINT_THIS << (A_NUMBER_THAT_HAS_A_DECIMAL_POINT_THINGY)answer << GO_TO_THE_NEXT_LINE_MOFO;
      
       CAN_YOU_RETURN_ZERO_PRETTY_PLEASE;
    }
    See how stupid this is/was? Mind you it compiles in VC++6, it isn't style nor is it practical or accepted.

    I went anonymous b/c I feel guilty for posting this but somebody had to

  6. #21
    Registered User
    Join Date
    Feb 2002
    Posts
    589
    Hey that look like VB code

  7. #22
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330
    Hehe... In this old Atari-ST book I have, they have you write this header file with lines like

    #define begin {
    #define end }
    #define then

    so you can say

    if (i == 2) then
    begin
    // ...
    end

  8. #23
    His posts are far and few Esparno's Avatar
    Join Date
    Mar 2002
    Posts
    100
    Dont forget snoozebtn() and its syntax snoozbtn("1:smash","2:throw out window")
    Signature is optional, I didnt opt for one.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Back to the drawing board
    By VirtualAce in forum Game Programming
    Replies: 11
    Last Post: 03-08-2004, 05:53 PM
  2. "if you love someone" :D
    By Carlos in forum A Brief History of Cprogramming.com
    Replies: 12
    Last Post: 10-02-2003, 01:10 AM
  3. UInt to CString and back
    By xlnk in forum Windows Programming
    Replies: 6
    Last Post: 08-27-2003, 03:08 PM
  4. Some woman back ended my car today, and back hurts
    By Terrance in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 08-20-2003, 12:42 AM
  5. Yey Im Back!
    By (TNT) in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 07-05-2003, 03:07 PM