mirror of https://github.com/CppCon/CppCon2014.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
233 B
C++
19 lines
233 B
C++
|
11 years ago
|
// Display "hello, world" without using any semi-colons
|
||
|
|
// in your program
|
||
|
|
|
||
|
|
#include <iostream>
|
||
|
|
|
||
|
|
int main()
|
||
|
|
{
|
||
|
|
if (std::cout << "Hello, World") {}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
// In C:
|
||
|
|
|
||
|
|
int main()
|
||
|
|
{
|
||
|
|
if (printf("Hello, world")) {}
|
||
|
|
}
|
||
|
|
|