"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???
Printable View
"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???
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.
I agree, don't do this:
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.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();
};
> 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.
See how stupid this is/was? Mind you it compiles in VC++6, it isn't style nor is it practical or accepted.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;
}
I went anonymous b/c I feel guilty for posting this but somebody had to :)
Hey that look like VB code
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
Dont forget snoozebtn() and its syntax snoozbtn("1:smash","2:throw out window")
:)