(Untitled)

Mar 08, 2005 21:08

Howdo ( Read more... )

Leave a comment

Comments 2

icrisisuk March 9 2005, 12:51:58 UTC
Is that enough to work in C? Aren't there some other includes needed? Been such a long time since I've started off a new project and needed to use printf though :)

Tis crazy nonetheless :s

Reply

electrodruid March 9 2005, 14:01:57 UTC
Technically the program is missing a #include or #include (I can never remember which one of those is C and which is C++), but you can get away with not putting it in the source assuming you're compiling under *nix (or GCC?) and put the command to do the #include in the makefile.

I haven't tried compiling it in C (though I've run it in l33t and BrainFuck), but I can't see how adding the include right at the beginning would hurt. The pointy brackets would translate to a couple of BrainFuck commands (move forwards 1, then move back 1 in memory), and it would add a NOP or two to the start of the l33t version, but it shouldn't change the output of the program in any of the languages.

Reply


Leave a comment

Up