diff options
| author | Bertrand <bertrand.horel@gmail.com> | 2016-02-27 16:35:03 +0000 |
|---|---|---|
| committer | Bertrand <bertrand.horel@gmail.com> | 2016-02-27 16:35:03 +0000 |
| commit | 96afa78f5fe1bafb95c96170932c7b4fc119ae7e (patch) | |
| tree | 2fce7067642c026d04a5ba6708975c0ddb390eac /src | |
| parent | e21e4882c9755a4b8e8194a79ecf5702fc935248 (diff) | |
| parent | 487d2e11fac749bec8018be3eafb5f3e307182b6 (diff) | |
| download | projet_C++-96afa78f5fe1bafb95c96170932c7b4fc119ae7e.tar.gz | |
Merge branch 'latex'
Diffstat (limited to 'src')
| -rw-r--r-- | src/make_table.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/make_table.cpp b/src/make_table.cpp new file mode 100644 index 0000000..2eeca6e --- /dev/null +++ b/src/make_table.cpp @@ -0,0 +1,17 @@ +#include <fstream> +#include "var_alea.hpp" + +int main() { + std::fstream fs("doc/table.tex", std::fstream::out); + gaussian G(0,1); + uniform U(0,1); + expo E(1); + fs<<R"(\begin{tabular}{|l|l|l|l})"<<std::endl; + fs<<" " <<" & "<<"gaussienne"<<" & "<<"uniforme"<<" & "<<"exponentielle"<<R"(\\ \hline)"<<std::endl; + fs<<"valeur1"<<" & "<<G() <<" & "<<U() <<" & "<<E() <<R"(\\ \hline)"<<std::endl; + fs<<"valeur2"<<" & "<<G() <<" & "<<U() <<" & "<<E() <<R"(\\ \hline)"<<std::endl; + fs<<"valeur3"<<" & "<<G() <<" & "<<U() <<" & "<<E() <<R"(\\ \hline)"<<std::endl; + fs<<R"(\end{tabular})"<<std::endl; + fs.close(); + return 0; +} |
