From 8fe92e65437e9a671b4458ff9b1f3546ccd067ec Mon Sep 17 00:00:00 2001 From: Bart Moyaers Date: Sun, 24 Nov 2019 20:00:41 +0100 Subject: [PATCH] Add uppercase letters --- Simple Fun 176 Reverse Letter/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Simple Fun 176 Reverse Letter/main.cpp b/Simple Fun 176 Reverse Letter/main.cpp index bd2bbc2..dce508d 100644 --- a/Simple Fun 176 Reverse Letter/main.cpp +++ b/Simple Fun 176 Reverse Letter/main.cpp @@ -3,7 +3,7 @@ std::string reverse_letter(const std::string &str) { - std::string alphabet ("abcdefghijklmnopqrstuvwxyz"); + std::string alphabet ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"); std::string result (""); for (int i = str.length() - 1; i >= 0; i--){ if (alphabet.find(str[i]) != std::string::npos){