[A] Added some docs for C++
This commit is contained in:
@@ -8,14 +8,14 @@ int main()
|
||||
fort::Table table;
|
||||
// Fill table with data
|
||||
table << fort::header
|
||||
<< "Rank" << "Title" << "Year" << "Rating" << fort::endl
|
||||
<< "1" << "The Shawshank Redemption" << "1994" << "9.5" << fort::endl
|
||||
<< "2" << "12 Angry Men" << "1957" << "8.8" << fort::endl
|
||||
<< "3" << "It's a Wonderful Life" << "1946" << "8.6" << fort::endl
|
||||
<< "Rank" << "Title" << "Year" << "Rating" << fort::endr
|
||||
<< "1" << "The Shawshank Redemption" << "1994" << "9.5" << fort::endr
|
||||
<< "2" << "12 Angry Men" << "1957" << "8.8" << fort::endr
|
||||
<< "3" << "It's a Wonderful Life" << "1946" << "8.6" << fort::endr
|
||||
<< fort::separator
|
||||
<< "4" << "2001: A Space Odyssey" << "1968" << "8.5" << fort::endl
|
||||
<< "5" << "Blade Runner" << "1982" << "8.1" << fort::endl
|
||||
<< fort::endl;
|
||||
<< "4" << "2001: A Space Odyssey" << "1968" << "8.5" << fort::endr
|
||||
<< "5" << "Blade Runner" << "1982" << "8.1" << fort::endr
|
||||
<< fort::endr;
|
||||
std::cout << table.to_string() << std::endl;
|
||||
}
|
||||
|
||||
@@ -30,6 +30,8 @@ int main()
|
||||
table.write_ln("3", "It's a Wonderful Life", "1946", "8.6");
|
||||
table.write_ln("4", "2001: A Space Odyssey", "1968", "8.5");
|
||||
table.write_ln("5", "Blade Runner", "1982", "8.1");
|
||||
|
||||
table.set_border_style(FT_SOLID_STYLE);
|
||||
std::cout << table.to_string();
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user