-
Here's another one...
This is probably so simple it's not funny, but you never know.
Code:
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.
-
>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.
-
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"?
-
>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.
-
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...
Code:
#define hello varible
#define fellow +=
#define programmer 1;
-
>> 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. :(
-
>> This one is pointless.
I guess it is.
Oh well, maybe my other thread isn't...
-
Heh, my family too
I think I'll copy your poll idea in relation to my signature.
-
>> Heh, my family too
Well, it's always good to know I'm not alone. :)
-
>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.
-
Especially siblings. Take from me, I know, I've got 4 bubs (little brothers)!
-
Heh, I've 5 older brothers and sisters :D I guess I was the brat hehe
-
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
-
I can relate to Mario's feelings. I'm the only male in this generation of my family. I'm lonely.
-
I've got a little brother.