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