Program 1: Hello World
"Hello World" seems to be the first program in almost every programming book, and this is no different. But this one is broken.
How can you break something as simple as "Hello World"? Take a look and see:
1 /************************************************
2 * The "standard" hello world program. *
3 *************************************************/
4 #include <iostream>
5
6 void main(void)
7 {
8 std::cout << "Hello world!\n";
9 }
(Next Hint 228. Answer 6.)
No comments:
Post a Comment