From 96dcf214a8c40529b251ea31ef037868583dd1da Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 12 Nov 2020 10:54:47 +0100 Subject: Fixing cpp03, moved more common logic in ClapTrap, Added better main --- cpp02/ex01/main_DO_NOT_TURN_ME_IN.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'cpp02') 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 +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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; } -- cgit