Is it possible to make a character a constant and a digit a variable somehow?
this program won't compile as it takes the C for a variable.
Code:int aa() { char y; cout<<" 1 - Intro to C++ The basics of C++\n"; cout<<"\n"; cout<<"1. What is the correct value to return to the operating system upon the successful completion of a program?\n"; cout<<"A. -1\n"; cout<<"B. 1\n"; cout<<"C. 0\n"; cout<<"D. Programs do not return a value.\n"; cin>> y; cin.ignore(); if ( y = c ) { cout<<"That's correct.\n"; cin.get(); }