-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathhello-world.cpp
More file actions
42 lines (42 loc) · 764 Bytes
/
hello-world.cpp
File metadata and controls
42 lines (42 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* hello.cpp
*
* a program that prints, 'Hello world'
*
* Author: cmhughes
* Date: November 11th, 2016
*
* Output: Hello World
*
* Compilation instructions:
*
* g++ -g -Wall hello.cpp
*
* This produces, by default
*
* a.out
*
* which can be run with, for example,
*
* ./a.out
*
* Other options:
*
* g++ -g -Wall hello.cpp -ohello
* g++ -g -Wall hello.cpp -o hello.out
*
* Will call the program/executable hello or hello.out
*
* References: pg 12 of Practical C++ programming
*
* For Chris: using vim,
* press f to run
* g++ -g -Wall %
* press F to run
* ./a.out
*
*/
#include <iostream>
int main() {
std::cout << "Hello World\n";
return (0);
}