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 :)
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.
Comments 2
Tis crazy nonetheless :s
Reply
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