Encryption, Decryption works
This commit is contained in:
+2
-2
@@ -15,8 +15,8 @@ public:
|
||||
protected:
|
||||
void setMessage(const std::string&);
|
||||
|
||||
std::string message;
|
||||
std::fstream ioEvent;
|
||||
std::string message{};
|
||||
std::fstream ioEvent{};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
+1
-1
@@ -65,7 +65,7 @@ std::string Decryption::cstringToString(char tmp[], const int& SIZE)
|
||||
|
||||
unsigned short getTwoNumberedKey(unsigned short& number)
|
||||
{
|
||||
std::string wholeNumber = std::to_string(number);
|
||||
std::string wholeNumber{std::to_string(number)};
|
||||
char hundred[] = {wholeNumber.at(0)};
|
||||
char ten[] = {wholeNumber.at(1)};
|
||||
char one[] {wholeNumber.at(2)};
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
MessagingControls* stuff = new MessagingControls;;
|
||||
MessagingControls stuff{};
|
||||
|
||||
stuff->show();
|
||||
stuff.show();
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
||||
+3
-3
@@ -67,10 +67,10 @@ private:
|
||||
|
||||
std::string grabCryptionText();
|
||||
|
||||
unsigned short mainWindowHeight = 450;
|
||||
unsigned short mainWindowWidth = 550;
|
||||
int mainWindowHeight{450};
|
||||
int mainWindowWidth{550};
|
||||
|
||||
bool cryptionChoice;
|
||||
bool cryptionChoice{};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user