commit 8a446ba22ae72558cb33f940ac4c9fb224f335ce Author: David Vereb Date: Wed Nov 14 15:03:31 2018 -0500 Initial commit. Only letters work\! diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..186cc50 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +a.out +*~ +#* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..8395e4e --- /dev/null +++ b/Makefile @@ -0,0 +1,2 @@ +a.out: main.cpp + clang++ --std=c++11 main.cpp diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..afbbfa1 --- /dev/null +++ b/main.cpp @@ -0,0 +1,19 @@ +#include + +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; +}