User Tools

Site Tools


cpp_hello_world

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
cpp_hello_world [2018/08/08 21:00]
jguerin
— (current)
Line 1: Line 1:
-====== Hello World in C++ ====== 
  
-<file C++ | hello.cpp> 
-#include <iostream> 
- 
-using namespace std; 
- 
-int main() { 
-  cout << "Hello World!" << endl; 
-   
-  return 0; 
-} 
-</file> 
- 
-"Hello World!" in C++ in 107 characters((The default dokuwiki codebox strips out a final newline character. The standard Unix terminal program ''wc'' will report the download as 106 characters as it is presented here, and 107 with the final newline character after the final ''}''. You may have to imagine this final character or add it yourself ; ) )). 
cpp_hello_world.1533780038.txt.gz ยท Last modified: 2018/08/08 21:00 by jguerin