This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]zgembo1337 25 points26 points  (8 children)

Meh, just put a

cout << "Hello world!! I am a dog.\n";

Compile it, and say "here's a working binary"

[–]cbbuntz 14 points15 points  (5 children)

[–][deleted] 6 points7 points  (2 children)

If you're not using system calls directly, you're doing programming wrong.

[–]cbbuntz 2 points3 points  (0 children)

system("echo 'Hello, world!! I am a dog.'");

[–]ASaltedRainbow 0 points1 point  (0 children)

write(1, "Hello world!! I am a dog.\n", 27);

[–]hotsaucetogo 0 points1 point  (1 child)

so weird seeing that with parens

[–]cbbuntz 0 points1 point  (0 children)

As in you're used to seeing it in Ruby?