test code block text

This commit is contained in:
hugogogo
2021-10-15 12:34:43 +02:00
parent 537d77eb16
commit e07d989f75

View File

@@ -96,20 +96,15 @@ EXEMPLE : . .
### 3.1 tentative methode 1 : ### 3.1 tentative methode 1 :
#### 3.1.1 pseudo code : #### 3.1.1 pseudo code :
```text
``` q = 0 // first quote
int q; // first quote c = 0 // count
int c; // count i = 0
int i;
q = 0;
c = 0;
i = 0;
while (str[i]) while (str[i])
{ {
if (str[i] == ''') if (str[i] == ')
{ {
if (q == ''') if (q == ')
{ {
c--; c--;
if (c == 0) if (c == 0)
@@ -122,12 +117,12 @@ while (str[i])
{ {
c++; c++;
if (q == 0) if (q == 0)
q = '''; q = ';
} }
} }
if (str[i] == '"') if (str[i] == ")
{ {
if (q == '"') if (q == ")
{ {
c--; c--;
if (c == 0) if (c == 0)
@@ -140,7 +135,7 @@ while (str[i])
{ {
c++; c++;
if (q == 0) if (q == 0)
q = '"'; q = ";
} }
} }
i++; i++;
@@ -150,7 +145,7 @@ while (str[i])
*[\go to sommaire](#markdown-header-sommaire)* *[\go to sommaire](#markdown-header-sommaire)*
#### 3.1.2 application : #### 3.1.2 application :
```Shell ```text
['][a][r][g][1][ ]['][a][r][g][2]["][ ][a][r][g][3]["] ['][a][r][g][1][ ]['][a][r][g][2]["][ ][a][r][g][3]["]
c = 0 . . . . . . . . . . . . . . . . . . c = 0 . . . . . . . . . . . . . . . . . .
c = 1 . . . . . . . . . . . . . . . . . str[i] == ' ; q == 0 c == 0 -> c++; q = ' c = 1 . . . . . . . . . . . . . . . . . str[i] == ' ; q == 0 c == 0 -> c++; q = '