From 8a446ba22ae72558cb33f940ac4c9fb224f335ce Mon Sep 17 00:00:00 2001 From: David Vereb Date: Wed, 14 Nov 2018 15:03:31 -0500 Subject: [PATCH] Initial commit. Only letters work\! --- .gitignore | 3 +++ Makefile | 2 ++ main.cpp | 19 +++++++++++++++++++ 3 files changed, 24 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile create mode 100644 main.cpp 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; +}