From 5be392bc8aa745ec58191a57c3fb5b4ec3cec0b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Horst=20Schl=C3=A4mmer?= <kevin.hoellring@fau.de> Date: Tue, 22 Oct 2019 04:34:43 +0200 Subject: [PATCH] Fix code snippets in README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3122560..9b2cf9c 100644 --- a/README.md +++ b/README.md @@ -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 -'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. 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 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 -'./sample_4' +`./sample_4` in the console. \ No newline at end of file -- GitLab