[A] Added cpp wrappers

This commit is contained in:
seleznevae
2018-04-01 11:36:52 +03:00
parent 9169cb8a71
commit 0fa22238ef
7 changed files with 210 additions and 76 deletions

21
example/main.cpp Normal file
View File

@@ -0,0 +1,21 @@
#include <iostream>
#include "fort.hpp"
int main()
{
fort::FTable 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
<< fort::separator
<< "4" << "2001: A Space Odyssey" << "1968" << "8.5" << fort::endl
<< "5" << "Blade Runner" << "1982" << "8.1" << fort::endl;
std::cout << table.to_string();
return 0;
}