PDA

View Full Version : Here's another one...



Queatrix
09-17-2006, 05:15 PM
This is probably so simple it's not funny, but you never know.

int varible = 0;

int main(void)
{
hello fellow programmer
}
Make the code in the main function add one to the varible varible, without adding anything to main or using classes or structs.

Prelude
09-17-2006, 05:24 PM
>This is probably so simple it's not funny
Yes, yes it is. It's also pretty pointless seeing as how you won't learn anything significant from solving the puzzle.

Queatrix
09-17-2006, 05:40 PM
Lighten up, we are in the General Discussions board, not everything you learn here has to be significant. And if it's so easy, then why not solve this "pointless puzzle"?

Prelude
09-17-2006, 05:46 PM
>Lighten up, we are in the General Discussions board, not everything you learn here has to be significant
I was simply stating an observation. There's no need to get defensive. :)

>And if it's so easy, then why not solve this "pointless puzzle"?
For the same reason that I don't participate in contests that I'm overqualified for. If I throw together a solution in a few seconds then it sucks the fun right out of the exercise for the people who are actually interested in figuring it out.

Mario F.
09-17-2006, 05:52 PM
There is very little interesting about this exercise actually. I prefer puzzles that actually can be used in real-life situations (and are more challenging that just mimic language features). This one is pointless.

But still...


#define hello varible
#define fellow +=
#define programmer 1;

Queatrix
09-17-2006, 05:55 PM
>> I was simply stating an observation. There's no need to get defensive.

Oh.

It's just that where I come from (my family), no one makes an observation, it's always an aggresive comment, so I am automaticly always in defense mode. :(

Queatrix
09-17-2006, 05:57 PM
>> This one is pointless.

I guess it is.

Oh well, maybe my other thread isn't...

twomers
09-17-2006, 05:58 PM
Heh, my family too

I think I'll copy your poll idea in relation to my signature.

Queatrix
09-17-2006, 06:29 PM
>> Heh, my family too

Well, it's always good to know I'm not alone. :)

Prelude
09-17-2006, 06:31 PM
>It's just that where I come from (my family), no one makes an observation, it's always an aggresive comment
Hmm, my family is just super competitive about everything. Holidays together are always entertaining.

Queatrix
09-17-2006, 06:47 PM
Especially siblings. Take from me, I know, I've got 4 bubs (little brothers)!

twomers
09-17-2006, 06:48 PM
Heh, I've 5 older brothers and sisters :D I guess I was the brat hehe

Mario F.
09-17-2006, 06:52 PM
I'm the only man in my house. Even the damn cat is a she. My wife and daughter... well, in short, Electra never had a saying.

... so I take it on the forums

whiteflags
09-18-2006, 01:55 AM
I can relate to Mario's feelings. I'm the only male in this generation of my family. I'm lonely.

cboard_member
09-18-2006, 03:03 AM
I've got a little brother.

SlyMaelstrom
09-18-2006, 03:49 AM
Hmm, my family is just super competitive about everything. Holidays together are always entertaining.My family challenges your family to a game of Family Feud!

cboard_member
09-18-2006, 07:22 AM
My family challenges your family to a game of Family Feud!

I had to read that again after first seeing "My family challenges your family to a game of Family Freud!".

Eek.

zx-1
09-18-2006, 07:28 AM
Dawsonian slip?

swgh
09-18-2006, 08:03 AM
I did not know that a question on computer programming could turn into a little game of family fortunes lol -- good to see everyone is sp free spirited on here...