From 8ce1b374e32345796bb82223698b15a879217d49 Mon Sep 17 00:00:00 2001 From: Randell Dawson Date: Fri, 21 Jun 2019 13:09:17 -0700 Subject: [PATCH] fix: replace languages preceded by space --- guide/arabic/cplusplus/loops/index.md | 11 +++++------ guide/chinese/cplusplus/loops/index.md | 2 +- .../cplusplus/inline-functions/index.md | 2 +- guide/english/mathematics/index.md | 10 +++++----- guide/portuguese/cplusplus/loops/index.md | 2 +- guide/russian/cplusplus/loops/index.md | 2 +- guide/spanish/cplusplus/loops/index.md | 18 +++++++++--------- 7 files changed, 23 insertions(+), 24 deletions(-) diff --git a/guide/arabic/cplusplus/loops/index.md b/guide/arabic/cplusplus/loops/index.md index 7d0d7b0f82..9df4713910 100644 --- a/guide/arabic/cplusplus/loops/index.md +++ b/guide/arabic/cplusplus/loops/index.md @@ -60,21 +60,20 @@ Lets write a program which will print numbers from 0 to 1000 including 1000 on t ` for(int i=0;i<=1000;i++) ` * If there is only one statement inside the loop then the curly bracket is optional but its better to write loop code within brackets so that you don't get confused. - ``` c++ +```cpp for(int i=0;i<=1000;i++) { } - ``` +``` * Then inside the loop you write what do you want to do. In the above program we output the value of i. So, in this way the for loop works If you want to print even numbers from 1 to 1000 then your program will look like this -`` +```cpp +لـ (int i = 0؛ i = 1000 = i = i + 2) { cout << i << endl؛ } -ج ++ لـ (int i = 0؛ i = 1000 = i = i + 2) { cout << i << endl؛ } - -\`\` \` +``` * الفرق في البرنامج الأول والثاني هو جزء الزيادة. بقية الكود هو نفسه. هذا البرنامج سوف يطبع 0 و ثم إضافة 2 إليه وطباعة 2 على وحدة التحكم وهكذا تصبح قيمة up تساوي 1000. diff --git a/guide/chinese/cplusplus/loops/index.md b/guide/chinese/cplusplus/loops/index.md index b9ee16c089..97ccb799cc 100644 --- a/guide/chinese/cplusplus/loops/index.md +++ b/guide/chinese/cplusplus/loops/index.md @@ -57,7 +57,7 @@ When you execute this code in a c++ program numbers from 1 to 1000 will be print ` for(int i=0;i<=1000;i++) ` * If there is only one statement inside the loop then the curly bracket is optional but its better to write loop code within brackets so that you don't get confused. - ``` c++ + ```cpp for(int i=0;i<=1000;i++) { } diff --git a/guide/english/cplusplus/inline-functions/index.md b/guide/english/cplusplus/inline-functions/index.md index da9a43443a..48011eb1bd 100644 --- a/guide/english/cplusplus/inline-functions/index.md +++ b/guide/english/cplusplus/inline-functions/index.md @@ -28,7 +28,7 @@ Note that inlining is only a request to the compiler, not a command. The compile * When performance is important. * Instead of a macro. -``` c++ +```cpp #include using namespace std; diff --git a/guide/english/mathematics/index.md b/guide/english/mathematics/index.md index 6e832e977a..11e09a8e18 100644 --- a/guide/english/mathematics/index.md +++ b/guide/english/mathematics/index.md @@ -16,7 +16,7 @@ There is this concept in mathematics: "each generating function has a sequence a In this section we'll show you how to include the standard math library in different languages including a short example of how you can use it. #### C# -``` cs +```csharp using System.Math; public class Calculator { @@ -41,12 +41,12 @@ Documentation reference: @@ -64,14 +64,14 @@ In the browser Documentation reference: Math.js documentation #### C++ -``` cpp +```cpp #include ``` Documentation reference: cplusplus reference #### Python -``` python +```python >>> import math >>> math.sqrt(9) //takes only positive roots into consideration 3.0 diff --git a/guide/portuguese/cplusplus/loops/index.md b/guide/portuguese/cplusplus/loops/index.md index 0380753834..f3c2624bf9 100644 --- a/guide/portuguese/cplusplus/loops/index.md +++ b/guide/portuguese/cplusplus/loops/index.md @@ -57,7 +57,7 @@ When you execute this code in a c++ program numbers from 1 to 1000 will be print ` for(int i=0;i<=1000;i++) ` * If there is only one statement inside the loop then the curly bracket is optional but its better to write loop code within brackets so that you don't get confused. - ``` c++ + ```cpp for(int i=0;i<=1000;i++) { } diff --git a/guide/russian/cplusplus/loops/index.md b/guide/russian/cplusplus/loops/index.md index eec0125e75..99e121f3dd 100644 --- a/guide/russian/cplusplus/loops/index.md +++ b/guide/russian/cplusplus/loops/index.md @@ -57,7 +57,7 @@ When you execute this code in a c++ program numbers from 1 to 1000 will be print ` for(int i=0;i<=1000;i++) ` * If there is only one statement inside the loop then the curly bracket is optional but its better to write loop code within brackets so that you don't get confused. - ``` c++ + ```cpp for(int i=0;i<=1000;i++) { } diff --git a/guide/spanish/cplusplus/loops/index.md b/guide/spanish/cplusplus/loops/index.md index ec640ef747..0c361e44e5 100644 --- a/guide/spanish/cplusplus/loops/index.md +++ b/guide/spanish/cplusplus/loops/index.md @@ -57,28 +57,28 @@ When you execute this code in a c++ program numbers from 1 to 1000 will be print ` for(int i=0;i<=1000;i++) ` * If there is only one statement inside the loop then the curly bracket is optional but its better to write loop code within brackets so that you don't get confused. - ``` c++ +```cpp for(int i=0;i<=1000;i++) { } - ``` +``` * Then inside the loop you write what do you want to do. In the above program we output the value of i. So, in this way the for loop works If you want to print even numbers from 1 to 1000 then your program will look like this +```cpp + +para (int i = 0; i <= 1000; i = i + 2) { cout << i << endl; } + ``` -c ++ para (int i = 0; i <= 1000; i = i + 2) { cout << i << endl; } - -\`\` \` - * La diferencia entre el primer programa y el segundo es la parte de incremento. El resto del código es el mismo. Este programa imprimirá 0 y luego agregue 2 e imprima 2 en la consola y así sucesivamente hasta que el valor de i sea igual a 1000. Nuestro programa final para imprimir números pares de 0 a 1000 se verá así. - \`\` \`c ++ +```cpp # incluir - - utilizando namespace std; int main () { para (int i = 0; i <= 1000; i = i + 2) { cout << i << endl; } devuelve 0; } \`\` \` \ No newline at end of file + utilizando namespace std; int main () { para (int i = 0; i <= 1000; i = i + 2) { cout << i << endl; } devuelve 0; } +```