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.

35 lines
1.2 KiB

3 years ago
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.cpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/06/13 08:20:39 by narnaud #+# #+# */
/* Updated: 2022/06/13 08:44:34 by narnaud ### ########.fr */
/* */
/* ************************************************************************** */
# include <iostream>
# include <locale.h>
int main(int argc, char **argv)
{
if (argc < 2)
std::cout << "* LOUD AND UNBEARABLE FEEDBACK NOISE *";
else
{
int i = 1;
char *ret;
while (i < argc)
{
ret = argv[i];
while (*ret)
std::cout << (char)toupper(*(ret++));
i++;
}
}
std::cout << std::endl;
return (EXIT_SUCCESS);
}