init: ex00-02

This commit is contained in:
Camille Chauvet
2023-05-23 15:38:05 +00:00
commit f1d178366c
18 changed files with 236 additions and 0 deletions

18
ex02/src/main.cpp Normal file
View File

@ -0,0 +1,18 @@
#include <ostream>
#include <string>
#include <iostream>
int main()
{
std::string string = "HI THIS IS BRAIN";
std::string* stringPTR = &string;
std::string& stringREF = string;
std::cout << &string << std::endl;
std::cout << stringPTR << std::endl;
std::cout << &stringREF << std::endl;
std::cout << string << std::endl;
std::cout << *stringPTR << std::endl;
std::cout << stringREF << std::endl;
}