#include <iostream>
#include <map>
#include <string>
std::map<std::string, std::string> wizly(const std::string& lang) {
std::map<std::string, std::string> response;
if (lang.empty()) {
response["msg"] = "Please specify a language.";
} else if (lang == "en") {
response = {{"code", "200"}, {"title", "Weasley"}, {"desc", "He's a maniac who messes with the code like crazy"}};
} else if (lang == "tr") {
response = {{"code", "200"}, {"title", "Weasley"}, {"desc", "Kodlarla deli gibi uğraşan bir manyak"}};
} else {
response["msg"] = "Please specify a correct language";
}
return response;
}
int main() {
std::string lang;
std::cout << "Enter language (en or tr): ";
std::cin >> lang;
std::map<std::string, std::string> result = wizly(lang);
for (const auto& pair : result) {
std::cout << pair.first << ": " << pair.second << std::endl;
}
return 0;
}
- Turkey
-
05:03
(UTC +03:00)
Highlights
Block or Report
Block or report ZyrxusMe
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned Loading
-
deprem-api-python
deprem-api-python PublicBu proje, Türkiye'deki deprem verilerini almak için kullanılan bir API sunmaktadır. API, Boğaziçi Üniversitesi Kandilli Rasathanesi'nin veritabanından canlı deprem verilerini çekerek kullanıcılara …
Python 1
-
Discord-Dogruluk-Cesaretlik
Discord-Dogruluk-Cesaretlik PublicDoğruluk Cesaretlik Botu | Discord.JS V14 sürümü ile yapılmıştır
JavaScript 2
-
discord-bot-list-v14
discord-bot-list-v14 PublicDiscord Bot List sunucularınız için bot list altyapısı. (Sunucu sayısı vb. bilgileri çekebilirsiniz.)
JavaScript 2
If the problem persists, check the GitHub status page or contact support.