Declare char reference variable letterRef and initializeletterRef to letterValue.
Ex: If the input is M, then then output is:
Referenced letter is M.
Here is the template of the problem, please use it:
#include <iostream>using namespace std;
int main() { char letterValue;
/* Your code goes here */
cin >> letterValue; cout << "Referenced letter is " <<letterRef << "." << endl;
return 0;}
Declare char reference variable letterRef and initialize letterRef to letterValue. Ex: If the input is M, then then outp
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am