diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-11-12 10:54:47 +0100 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-11-12 10:54:47 +0100 |
| commit | 96dcf214a8c40529b251ea31ef037868583dd1da (patch) | |
| tree | ecbb74fd1982829b550f5b5f5451497245db1358 /cpp02 | |
| parent | 2e0cf63a219d24ef07412deca9b0e6cb02882b46 (diff) | |
| download | piscine_cpp-96dcf214a8c40529b251ea31ef037868583dd1da.tar.gz piscine_cpp-96dcf214a8c40529b251ea31ef037868583dd1da.tar.bz2 piscine_cpp-96dcf214a8c40529b251ea31ef037868583dd1da.zip | |
Fixing cpp03, moved more common logic in ClapTrap, Added better main
Diffstat (limited to 'cpp02')
| -rw-r--r-- | cpp02/ex01/main_DO_NOT_TURN_ME_IN.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cpp02/ex01/main_DO_NOT_TURN_ME_IN.cpp b/cpp02/ex01/main_DO_NOT_TURN_ME_IN.cpp index f2eb5e0..ea1cd08 100644 --- a/cpp02/ex01/main_DO_NOT_TURN_ME_IN.cpp +++ b/cpp02/ex01/main_DO_NOT_TURN_ME_IN.cpp @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/13 11:51:15 by charles #+# #+# */ -/* Updated: 2020/11/10 10:00:32 by cacharle ### ########.fr */ +/* Updated: 2020/11/11 13:53:50 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -32,5 +32,12 @@ int main(void) std::cout << "c is " << c.toInt() << " as integer" << std::endl; std::cout << "d is " << d.toInt() << " as integer" << std::endl; + std::cout << std::endl << "===============================================" << std::endl; + std::cout << "a is " << a.toFloat() << " as float" << std::endl; + std::cout << "b is " << b.toFloat() << " as float" << std::endl; + std::cout << "c is " << c.toFloat() << " as float" << std::endl; + std::cout << "d is " << d.toFloat() << " as float" << std::endl; + std::cout << "===============================================" << std::endl << std::endl; + return 0; } |
