mirror of
https://github.com/red0124/ssp.git
synced 2025-01-23 04:55:20 +01:00
[skip ci] Update README
This commit is contained in:
parent
911d81248b
commit
6a3ba48a2c
12
README.md
12
README.md
@ -96,14 +96,14 @@ Brian S. Wolfe,40,1.9
|
||||
Bill (Heath) Gates,65,3.3
|
||||
```
|
||||
```cpp
|
||||
// ...
|
||||
ss::parser<ss::throw_on_error> p{"students_with_header.csv"};
|
||||
p.use_fields("Id", "Grade");
|
||||
// ...
|
||||
ss::parser<ss::throw_on_error> p{"students_with_header.csv"};
|
||||
p.use_fields("Id", "Grade");
|
||||
|
||||
for(const auto& [id, grade] : p.iterate<std::string, float>()) {
|
||||
for(const auto& [id, grade] : p.iterate<std::string, float>()) {
|
||||
std::cout << id << ' ' << grade << std::endl;
|
||||
}
|
||||
// ...
|
||||
}
|
||||
// ...
|
||||
```
|
||||
```shell
|
||||
$ ./a.out
|
||||
|
Loading…
Reference in New Issue
Block a user