We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d929b7d commit 372135aCopy full SHA for 372135a
Calculator/mainwindow.cpp
@@ -12,6 +12,10 @@ QString Qkey;
12
std::string encryptDecrypt(std::string toEncrypt) {
13
//QString Qkey = ui->lineEdit->displayText();
14
std::string key1 = Qkey.toStdString();
15
+ // convert string to upper case
16
+ std::for_each(key1.begin(), key1.end(), [](char & c){
17
+ c = ::toupper(c);
18
+ });
19
//char keyT[10] = {'K', 'C', 'Q'}; //Any chars will work
20
if(key1.length() <= 0)
21
{
0 commit comments