I am trying to use an unsigned int and its respective bits to assign a set of lowercase letters. The low order bit represents the letter 'a' and the next higher order bit represents the letter 'b,' all the way to z.

For example... 3 in 32-bit binary is... and represents the set { a, b }

00000000000000000000000000000011

The number 41 is... { a, d, f }

00000000000000000000000000101001

How would I go about reading the bit and outputting the letters in the set?

Using something like:

Code:int main() { unsigned int n1, n2; cout << "Please insert your first number used for calculation:" << endl; cin >> n1; cout << "Please insert your second number now:" << endl; cin >> n2; char ch = getChar(n1); }