Initial commit. Only letters work\!

This commit is contained in:
David Vereb 2018-11-14 15:03:31 -05:00
commit 8a446ba22a
3 changed files with 24 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
a.out
*~
#*

2
Makefile Normal file
View File

@ -0,0 +1,2 @@
a.out: main.cpp
clang++ --std=c++11 main.cpp

19
main.cpp Normal file
View File

@ -0,0 +1,19 @@
#include <iostream>
int main(int argc, char *argv[])
{
if(argc < 2)
{
std::cout << "You must provide SOMETHING." << std::endl;
return -1;
}
std::cout << ":large_blue_diamond: ";
for(auto i = 1; i < argc; ++i)
{
for(auto j = 0; argv[i][j] != '\0'; ++j)
std::cout << ":regional_indicator_" << char(std::tolower(argv[i][j])) << ": ";
std::cout << ":large_blue_diamond: ";
}
std::cout << std::endl;
}