Emojify/main.cpp
2018-11-14 15:03:31 -05:00

20 lines
418 B
C++

#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;
}