mirror of
https://github.com/Ladebeze66/cpp-partie-2.git
synced 2026-11-09 13:47:14 +01:00
cpp07
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/03/02 19:06:16 by fgras-ca #+# #+# */
|
||||
/* Updated: 2024/03/02 19:13:43 by fgras-ca ### ########.fr */
|
||||
/* Updated: 2024/03/13 10:51:58 by fgras-ca ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -20,14 +20,14 @@ int main()
|
||||
::swap(a, b);
|
||||
std::cout << RED << "a = " << RESET << a << RED << ", b = " << RESET << b << std::endl;
|
||||
std::cout << GREEN << "min( a, b ) = " << RESET << ::min(a, b) << std::endl;
|
||||
std::cout << MAGENTA << "max( a, b ) = " << RESET << ::max(a, b) << std::endl;
|
||||
std::cout << YELLOW << "max( a, b ) = " << RESET << ::max(a, b) << std::endl;
|
||||
|
||||
std::string c = "chaine1";
|
||||
std::string d = "chaine2";
|
||||
::swap(c, d);
|
||||
std::cout << RED << "c = " << RESET << c << RED << ", d = " << RESET << d << std::endl;
|
||||
std::cout << GREEN << "min( c, d ) = " << RESET << ::min(c, d) << std::endl;
|
||||
std::cout << MAGENTA << "max( c, d ) = " << RESET << ::max(c, d) << std::endl;
|
||||
std::cout << YELLOW << "max( c, d ) = " << RESET << ::max(c, d) << std::endl;
|
||||
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user