Skip to content

Instantly share code, notes, and snippets.

View AliBasicCoder's full-sized avatar

ali ahmed AliBasicCoder

View GitHub Profile
#include <iostream>
#include <string>
using namespace std;
string getKeyword() {
cout << "please enter your keyword: ";
while (true) {
// get input from user
string user_input;
#include <iostream>
#include <string>
using namespace std;
int getValidKey() {
// print message to user
cout << "please enter your key: ";
// a variable to store the result
int result;
#include <iostream>
#include <string>
using namespace std;
// a function to get a number input from user
// message: a message to show to user
// def: a default value for number
// a: if a > 0, this means that we're current asking for parameter c
// which we need to verify that a*c % 26 == 0,