diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-11-08 13:39:12 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-11-08 13:39:12 +0100 |
| commit | 1e9d90bdf9ef5fc05093d3449d883597c7f896de (patch) | |
| tree | cc5334baec6ec10a0d99bc925499512bc44f2cd0 /cpp06/ex00/main.cpp | |
| parent | c426fe76ec5925e8c94aae3db04e5e1f1ce1585e (diff) | |
| download | piscine_cpp-1e9d90bdf9ef5fc05093d3449d883597c7f896de.tar.gz piscine_cpp-1e9d90bdf9ef5fc05093d3449d883597c7f896de.tar.bz2 piscine_cpp-1e9d90bdf9ef5fc05093d3449d883597c7f896de.zip | |
Added cpp06 boilerplate
Diffstat (limited to 'cpp06/ex00/main.cpp')
| -rw-r--r-- | cpp06/ex00/main.cpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/cpp06/ex00/main.cpp b/cpp06/ex00/main.cpp new file mode 100644 index 0000000..35d64b9 --- /dev/null +++ b/cpp06/ex00/main.cpp @@ -0,0 +1,32 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* main.cpp :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2020/04/16 10:54:10 by charles #+# #+# */ +/* Updated: 2020/04/16 12:23:06 by charles ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include <iostream> +#include <sstream> + +int main(int argc, char **argv) +{ + // if (argc != 2) + // { + // std::cout << "Usage: " << argv[0] << " litteral" << std::endl; + // return 1; + // } + + int i; + + std::istringstream("bonjour") >> i; + + + std::cout << i << std::endl; + + return 0; +} |
