| 123456789101112131415161718192021222324252627282930 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* main.cpp :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2026/01/09 14:15:06 by bchanot #+# #+# */
- /* Updated: 2026/01/09 14:23:11 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "Swap.hpp"
- 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;
- }
|