然后,基本使用方法如下:
点击(此处)折叠或打开
-
#include <libfccp/csv.h>
-
-
#include <iostream>
-
-
#include <string>
-
-
int main(int argument_number, char **argument_array)
-
{
-
std::string file_name = "test.csv";
-
-
io::CSVReader<2, io::trim_chars<' '>, io::double_quote_escape<',', '\"'>> o_csv_reader(file_name);
-
-
std::string col_01;
-
std::string col_02;
-
-
while (true)
-
{
-
if (o_csv_reader.read_row(col_01, col_02))
-
{
- std::cout << col_01 << "\t