Let’s say there is a matrix 5×5 10×10 20×20, etc., it contains only numbers that need to be replaced with letters of the English alphabet, and, if possible, try to make words and/or sentences from them.
Has anyone done similar research? I still lack the experience and imagination to create software of such complexity.
In this form, an integer is obtained and printed as a symbol.
`> #include
int main() {
int letter = 0;
std::cout << “Please type in a number: “;while (1) {
std::cin >> letter;
//less than 1 or greater than 26
if (!(letter < 1 || 26 < letter)) {
std::cout << “The letter that corosponds to that value is ‘”
char(64+letter) << “‘n”;
return 0;
}
std::cout <<“The English Alphabet only has 26 letters. Try againn”;
}
}
Viacheslav Chebotarev is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.