forked from YearOfProgramming/2017Challenges
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request YearOfProgramming#445 from dewie102/master
[cpp] Challenge 0 (reviewed and merged)
- Loading branch information
Showing
2 changed files
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Hello World | ||
###### C++ 11 | ||
|
||
### 1. Approch to solving the probelm | ||
|
||
Pretty self explainitory, just getting the basics down and making sure everything is correct. | ||
|
||
### 2. How to compile and run this | ||
|
||
In Windows - I used the Visual Studio C++ compiler, move to the proper directory and run: | ||
|
||
``` | ||
cl.exe src/HelloWorld.cpp | ||
HelloWorld.exe | ||
``` | ||
|
||
### 3. How this program works | ||
|
||
The program just outputs "Hello, World!" on the main output stream. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <iostream> | ||
|
||
int main(int argv, char** argc) { | ||
std::cout << "Hello, World!" << std::endl; | ||
return 0; | ||
} |