I’m making a code for cipher that reads alphabet in it’s binary code. Is there a way to implement custom alphabet (not using ASCII)? For example alphabet={a,b,c,d,e,…,z,],[,.,…, ,-} and for each character there’s a number 0,1,…,63. So, the bijetion will be from element of alphabet to 6bit number. How to male this implementation using simple ..
Category : alphabet
// C++ program to count the uppercase #include<iostream> #include<fstream> #include <string> using namespace std; // Function to count uppercase int Count ( string str ) { int upper = 0; for (int i = 0; i < str.length(); i++) { if (str[i] >= ‘A’ && str[i] <= ‘Z’) upper++; } return upper; } // Driver ..
Recent Comments