31 lines
470 B
C++
31 lines
470 B
C++
#include <cstring>
|
|
#include <iostream>
|
|
|
|
int main(int ac, char **av)
|
|
{
|
|
int i = 1;
|
|
int j = 0;
|
|
|
|
if (ac == 1)
|
|
{
|
|
std::cout << "* LOUD AND UNBEARABLE FEEDBACK NOISE *" << std::endl;
|
|
return 0;
|
|
}
|
|
while (av[i])
|
|
{
|
|
while (av[i][j])
|
|
{
|
|
if (av[i][j] >= 'a' && av[i][j] <= 'z')
|
|
{
|
|
av[i][j] = toupper(av[i][j]);
|
|
j++;
|
|
}
|
|
else
|
|
j++;
|
|
}
|
|
std::cout << av[i];
|
|
i++;
|
|
j = 0;
|
|
}
|
|
std::cout << std::endl;
|
|
} |