39 lines
1.2 KiB
C++
39 lines
1.2 KiB
C++
/* ************************************************************************** */
|
|
/* */
|
|
/* :::::::: */
|
|
/* megaphone.cpp :+: :+: */
|
|
/* +:+ */
|
|
/* By: whaffman <whaffman@student.codam.nl> +#+ */
|
|
/* +#+ */
|
|
/* Created: 2025/03/19 16:52:26 by whaffman #+# #+# */
|
|
/* Updated: 2025/03/19 18:16:03 by whaffman ######## odam.nl */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <iostream>
|
|
#include <cctype>
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
int i;
|
|
int j;
|
|
|
|
i = 1;
|
|
if (argc < 2)
|
|
{
|
|
std::cout << "* LOUD AND UNBEARABLE FEEDBACK NOISE *" << std::endl;
|
|
return (EXIT_SUCCESS);
|
|
}
|
|
while (i < argc)
|
|
{
|
|
j = 0;
|
|
while (argv[i][j])
|
|
{
|
|
std::cout << (char)std::toupper(argv[i][j]);
|
|
j++;
|
|
}
|
|
i++;
|
|
}
|
|
std::cout << std::endl;
|
|
}
|