style: using tab instead spaces
This commit is contained in:
parent
c4b4a2f3eb
commit
13deee8e3c
2 changed files with 11 additions and 10 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -17,4 +17,5 @@ harl_2.0
|
|||
harlFilter
|
||||
Fixed
|
||||
open
|
||||
polymorphism
|
||||
*.replace
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* 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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue