ex00 done
This commit is contained in:
31
ex00/main.cpp
Normal file
31
ex00/main.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.cpp :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* 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 */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "whatever.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);
|
||||
}
|
||||
Reference in New Issue
Block a user