1
0
Files
CPP_Module_07/ex00/main.cpp
2025-04-09 15:21:27 +02:00

31 lines
1.4 KiB
C++

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/09 14:29:59 by adjoly #+# #+# */
/* Updated: 2025/04/09 14:55:59 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "whatever.hpp"
#include <iostream>
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;
std::cout << "max( c, d ) = " << ::max(c, d) << std::endl;
return 0;
}