Project made from zero

This commit is contained in:
aortigos
2026-03-23 14:45:44 +01:00
parent 582f5ad276
commit d05d0063a7
7 changed files with 122 additions and 141 deletions

View File

@@ -5,8 +5,8 @@
/* +:+ +:+ +:+ */
/* By: aortigos <aortigos@student.42malaga.com +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/03/21 15:51:20 by aortigos #+# #+# */
/* Updated: 2026/03/21 15:51:47 by aortigos ### ########.fr */
/* Created: 2026/03/23 14:09:42 by aortigos #+# #+# */
/* Updated: 2026/03/23 14:18:16 by aortigos ### ########.fr */
/* */
/* ************************************************************************** */
@@ -15,13 +15,14 @@
int main( void ) {
int a = 2;
int b = 3;
::swap( a, b );
std::cout << "a = " << a << ", b = " << b << std::endl;
std::cout << "min( a, b ) = " << ::min( a, b ) << std::endl;
std::cout << "max( a, b ) = " << ::max( a, b ) << std::endl;
std::string c = "chaine1";
std::string d = "chaine2";
::swap(c, d);
std::cout << "c = " << c << ", d = " << d << std::endl;
std::cout << "min( c, d ) = " << ::min( c, d ) << std::endl;