From 13deee8e3c691addaef9aa7d2463d909577282ae Mon Sep 17 00:00:00 2001 From: Raphael Date: Wed, 5 Feb 2025 11:32:35 +0100 Subject: [PATCH] style: using tab instead spaces --- .gitignore | 1 + cpp01/ex02/main.cpp | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 7b26563..ac6d036 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,5 @@ harl_2.0 harlFilter Fixed open +polymorphism *.replace diff --git a/cpp01/ex02/main.cpp b/cpp01/ex02/main.cpp index 267a965..b6d12de 100644 --- a/cpp01/ex02/main.cpp +++ b/cpp01/ex02/main.cpp @@ -6,7 +6,7 @@ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/11/05 12:58:29 by rparodi #+# #+# */ -/* Updated: 2024/11/05 13:15:14 by rparodi ### ########.fr */ +/* Updated: 2025/02/05 11:31:36 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ @@ -24,18 +24,18 @@ int main(void) { std::string str = "HI THIS IS BRAIN"; - std::string *strptr = &str; - std::string &strref = str; + std::string *strptr = &str; + std::string &strref = str; std::cout << CLR_BLUE << "Memory Address:" << CLR_RESET << std::endl; - std::cout << CLR_BLUE << "Address of str:\t\t" << CLR_CYAN << &str << CLR_RESET << std::endl; - std::cout << CLR_BLUE << "Address of strptr:\t" << CLR_CYAN << strptr<< CLR_RESET << std::endl; - std::cout << CLR_BLUE << "Address of strref:\t" << CLR_CYAN << &strref<< CLR_RESET << std::endl; + std::cout << CLR_BLUE << "Address of str:\t\t" << CLR_CYAN << &str << CLR_RESET << std::endl; + std::cout << CLR_BLUE << "Address of strptr:\t" << CLR_CYAN << strptr<< CLR_RESET << std::endl; + std::cout << CLR_BLUE << "Address of strref:\t" << CLR_CYAN << &strref<< CLR_RESET << std::endl; std::cout << std::endl << CLR_YELLOW << "Value:" << CLR_RESET << std::endl; - std::cout << CLR_YELLOW << "Value of str:\t\t" << CLR_GOLD << str << std::endl; - std::cout << CLR_YELLOW << "Value of strptr:\t" << CLR_GOLD << *strptr << std::endl; - std::cout << CLR_YELLOW << "Value of strref:\t" << CLR_GOLD << strref << std::endl; + std::cout << CLR_YELLOW << "Value of str:\t\t" << CLR_GOLD << str << std::endl; + std::cout << CLR_YELLOW << "Value of strptr:\t" << CLR_GOLD << *strptr << std::endl; + std::cout << CLR_YELLOW << "Value of strref:\t" << CLR_GOLD << strref << std::endl; - return 0; + return 0; }