Skip to content
Snippets Groups Projects
Commit 5be392bc authored by Kevin Höllring's avatar Kevin Höllring
Browse files

Fix code snippets in README.md

parent 0560aa3e
Branches
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ In order to be executable by a computer, the program has to be translated into m ...@@ -14,7 +14,7 @@ In order to be executable by a computer, the program has to be translated into m
You can use the command You can use the command
'g++ <source_code_file> -o <name_of_output_program> -std=c++11 -Wall -Werr' `g++ <source_code_file> -o <name_of_output_program> -std=c++11 -Wall -Werr`
This tells the compiler (g++) where to find the source code and how to name the resulting program. This tells the compiler (g++) where to find the source code and how to name the resulting program.
In case you omit the name of the output program the result will most likely be an executable file called "a.out". In case you omit the name of the output program the result will most likely be an executable file called "a.out".
...@@ -24,10 +24,10 @@ If your code does compile without these two options but does not compile with th ...@@ -24,10 +24,10 @@ If your code does compile without these two options but does not compile with th
A sample invocation of the command: A sample invocation of the command:
'g++ src/sample_4.cpp -o sample_4 -std=c++11 -Wall -Werr' `g++ src/sample_4.cpp -o sample_4 -std=c++11 -Wall -Werr`
And the sample program can then be run by calling And the sample program can then be run by calling
'./sample_4' `./sample_4`
in the console. in the console.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment