COMP2113
COMP2113_ENGG1340 Programming technologies and Computer programming II [Section 2BC] [2023]
|
#include <iostream>
#include <string>
#include <cmath>
Go to the source code of this file.
Functions | |
bool | check_within_a_z (char test) |
void | convert_position_alphabet (char &letter) |
char | decryption (int key1, int key2, char letter) |
char | encryption (int key1, int key2, char letter) |
int | find_mmi (int a, int mod_value) |
int | gcd (int a, int b) |
int | main () |
bool check_within_a_z | ( | char | test | ) |
void convert_position_alphabet | ( | char & | letter | ) |
Definition at line 140 of file 1.cpp.
Referenced by decryption(), and encryption().
char decryption | ( | int | key1, |
int | key2, | ||
char | letter ) |
Definition at line 78 of file 1.cpp.
References convert_position_alphabet(), encryption(), find_mmi(), gcd(), and upper_case().
Referenced by main().
char encryption | ( | int | key1, |
int | key2, | ||
char | letter ) |
Definition at line 62 of file 1.cpp.
References convert_position_alphabet(), and upper_case().
Referenced by decryption(), and main().
int find_mmi | ( | int | a, |
int | mod_value ) |
Definition at line 124 of file 1.cpp.
Referenced by decryption().
int gcd | ( | int | a, |
int | b ) |
Definition at line 157 of file 1.cpp.
Referenced by decryption().
int main | ( | void | ) |
Definition at line 19 of file 1.cpp.
References check_within_a_z(), decryption(), and encryption().