makefile ok et ex00 d00 ok
This commit is contained in:
13
d00/megaphone.cpp
Normal file
13
d00/megaphone.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <iostream>
|
||||
|
||||
int main(int ac, char **av)
|
||||
{
|
||||
if (ac < 2)
|
||||
std::cout << std::uppercase << "shhhhh... I think the students are asleep...";
|
||||
else
|
||||
for (int i = 1; av[i] != NULL; i++)
|
||||
for (int j = 0; av[i][j] != '\0'; j++)
|
||||
std::cout << (char)toupper(av[i][j]);
|
||||
std::cout << std::endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user