mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 13:05:20 +01:00
add cpp higlight
This commit is contained in:
parent
f0d3e6c635
commit
17b170b8c4
@ -9,12 +9,13 @@ Example, lets say we have a csv file containing students in the
|
|||||||
following format <name,age,grade>:
|
following format <name,age,grade>:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
$ cat students.csv
|
||||||
James Bailey,65,2.5
|
James Bailey,65,2.5
|
||||||
Brian S. Wolfe,40,11.9
|
Brian S. Wolfe,40,11.9
|
||||||
Nathan Fielder,37,Really good grades
|
Nathan Fielder,37,Really good grades
|
||||||
Bill (Heath) Gates,65,3.3
|
Bill (Heath) Gates,65,3.3
|
||||||
```
|
```
|
||||||
```
|
```cpp
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <ss/parser.hpp>
|
#include <ss/parser.hpp>
|
||||||
|
|
||||||
@ -36,10 +37,10 @@ int main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
And if we execute the program we get the following output:
|
And if we compile and execute the program we get the following output:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ./program
|
$ ./a.out
|
||||||
James Bailey 65 2.5
|
James Bailey 65 2.5
|
||||||
Brian S. Wolfe 40 11.9
|
Brian S. Wolfe 40 11.9
|
||||||
Bill (Heath) Gates 65 3.3
|
Bill (Heath) Gates 65 3.3
|
||||||
|
Loading…
Reference in New Issue
Block a user