mirror of
https://github.com/Ladebeze66/cpp-partie-1.git
synced 2025-12-16 05:58:04 +01:00
35 lines
1.3 KiB
C++
35 lines
1.3 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* megaphone.cpp :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: fgras-ca <fgras-ca@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/12/23 16:14:56 by fgras-ca #+# #+# */
|
|
/* Updated: 2023/12/23 16:28:52 by fgras-ca ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <iostream>
|
|
#include <cctype>
|
|
#include <string>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
if (argc == 1)
|
|
{
|
|
std::cout << "* LOUD AND UNBEARABLE FEEDBACK NOISE *" << std::endl;
|
|
return (0);
|
|
}
|
|
for (int i = 1; i < argc; i++)
|
|
{
|
|
char *str = argv[i];
|
|
for (int j = 0; str[j]; j++)
|
|
{
|
|
std::cout << (char)toupper(str[j]);
|
|
}
|
|
std::cout << " ";
|
|
}
|
|
std::cout << std::endl;
|
|
return (0);
|
|
} |