Coolest thing you have ever done in code

Pages: 1234
plexus wrote:
Sorry for nitpicking, but that wouldn't compile. ;)

Sorry for nitpicking, but yes it will.

http://ideone.com/tIt3Nr
Last edited on
Ok, let's say most/many compilers will fail with: "main() must return a value" or so.
No they won't. In C++ main() is permitted to have an implicit return value (of zero).

[edit] You might get a warning, though.
Last edited on
Duoas wrote:
main() is permitted to have an implicit return value

You right, the VS2008 compiler builds this with no complaints. Cool :)
I mixed something up, apparently.

Anyway, back to topic: Who's next?

Coolest thing you ever coded?
In C++ main() is permitted to have an implicit return value (of zero).

C main() is the same way (except for the doubly-deprecated C89)
Im sure I havent done it yet but I loved the project ueler problems, they made me feel like I was a real coder.
closed account (NUj6URfi)
So does andywestken's thing compile or not?
closed account (Dy7SLyTq)
the original: probably
the one austin has: no, because he didn't copy the / at the beginning of a comment so if you add that in, it becomes probably again
toad1359 wrote:
So does andywestken's thing compile or not?
you could always copy/paste run and try it for yourself..
A Connect 4 game where the AI was playing about as strongly as an reasonable player. That was my first serious adventure into doing anything AI. It was magical seeing the computer 'making decisions' and seeing it actually win games against people.
Topic archived. No new replies allowed.
Pages: 1234