1
0

🗑️」 clean: cleaned project.

This commit is contained in:
2025-04-09 15:21:27 +02:00
parent 9035e8da97
commit a432c8defd
8 changed files with 127 additions and 15 deletions

View File

@ -6,7 +6,7 @@
/* 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 */
/* Updated: 2025/04/09 14:55:59 by adjoly ### ########.fr */
/* */
/* ************************************************************************** */
@ -15,15 +15,16 @@
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;
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;
}