You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.5 KiB
33 lines
1.5 KiB
2 years ago
|
/* ************************************************************************** */
|
||
|
/* */
|
||
|
/* ::: :::::::: */
|
||
|
/* main.cpp :+: :+: :+: */
|
||
|
/* +:+ +:+ +:+ */
|
||
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
|
||
|
/* +#+#+#+#+#+ +#+ */
|
||
|
/* Created: 2022/09/05 08:05:29 by narnaud #+# #+# */
|
||
|
/* Updated: 2022/09/05 08:13:45 by narnaud ### ########.fr */
|
||
|
/* */
|
||
|
/* ************************************************************************** */
|
||
|
|
||
|
#include "main.hpp"
|
||
|
#include <iostream>
|
||
|
|
||
|
int main( void ) {
|
||
|
int a = 2;
|
||
|
int b = 3;
|
||
|
std::cout << "a = " << a << ", b = " << b << std::endl;
|
||
|
::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;
|
||
|
}
|
||
|
|