1
0

」 feat: finished ex00

This commit is contained in:
2025-04-09 14:51:46 +02:00
commit 9035e8da97
6 changed files with 129 additions and 0 deletions

29
ex00/main.cpp Normal file
View File

@ -0,0 +1,29 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/09 14:29:59 by adjoly #+# #+# */
/* Updated: 2025/04/09 14:51:07 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
#include "whatever.hpp"
#include <iostream>
int main(void) {
int a = 2;
int b = 8;
std::cout << "a: " << a << " and b: " << b << std::endl;
std::cout << "min betweeen a and b: " << min(a, b) << std::endl;
std::cout << "max betweeen a and b: " << max(a, b) << std::endl;
std::cout << "swapping a and b" << std::endl;
swap(a, b);
std::cout << "a: " << a << " and b: " << b << std::endl;
std::cout << "min betweeen a and b: " << min(a, b) << std::endl;
std::cout << "max betweeen a and b: " << max(a, b) << std::endl;
}