Skip to content

Commit 2403fd6

Browse files
minor typo/grammar corrections (ronreiter#696)
1 parent 24083e8 commit 2403fd6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Diff for: tutorials/learn-cpp.org/en/Arrays.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Now that we know the syntax for declaring an array, the solution for Q1 would be
1515

1616
int marks[5];
1717

18-
Now lets initialize the array in Q1. Suppose the 5 students marks are as 96,92,78,54 and 86, then we can give our array values as,
18+
Now let's initialize the array in Q1. Suppose the 5 students marks are as 96,92,78,54 and 86, then we can give our array values as,
1919

2020
marks[0] = 96;
2121
marks[1] = 92;

Diff for: tutorials/learn-cpp.org/en/For loops.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Tutorial
22
--------
3-
We use loops in programming to repeat execution of a block of code instead of repeating the entire code. In C ++ we have 3 types of loops:
3+
We use loops in programming to repeat execution of a block of code instead of repeating the entire code. In C++ we have 3 types of loops:
44
- for-loops
55
- while loops
66
- do-while loops.
77

88
The execution of a loop can be controlled using the following keywords
99
- break - terminates the loop (or switch) -statement and transfers execution to the statement directly after the loop
1010
- continue - will cause the loop to process to the next element skipping the current one
11-
- goto LABEL - transferes control to the specified label. IT IS NOT ADVISED TO USE THIS STATEMENT!
11+
- goto LABEL - transfers control to the specified label. IT IS NOT ADVISED TO USE THIS STATEMENT!
1212

1313
### "for" loop
1414

Diff for: tutorials/learn-cpp.org/en/Functions.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ Another example:
3838

3939
Most commonly, functions are placed outside of the Main function.
4040

41-
Excercise
41+
Exercise
4242
---------
43-
In this excercise, you will create a function that prints out the sum of the given variables, a, b, and c. Below is the given code.
43+
In this exercise, you will create a function that prints out the sum of the given variables, a, b, and c. Below is the given code.
4444

4545
Tutorial Code
4646
-------------

Diff for: tutorials/learn-cpp.org/en/Structures.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ A structure is basically a user-defined datatype which consists of other datatyp
1212
//This is how you'll usually define a structure
1313
using namespace std;
1414
struct MyOwnStructure { // keyword "struct" followed by a name, followed by braces containing the datatypes you like, followed by a semicolon
15-
int poperty_one;
15+
int property_one;
1616
int property_two;
1717
char property_three;
1818
bool property_four;

0 commit comments

Comments
 (0)