Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cpp_introduction
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cp1_ws19
cpp_introduction
Commits
5be392bc
Commit
5be392bc
authored
5 years ago
by
Kevin Höllring
Browse files
Options
Downloads
Patches
Plain Diff
Fix code snippets in README.md
parent
0560aa3e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+3
-3
3 additions, 3 deletions
README.md
with
3 additions
and
3 deletions
README.md
+
3
−
3
View file @
5be392bc
...
@@ -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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment