vendredi 17 juillet 2020

Program akes only 1 alphabet input and exits while leaving remaining code unexecuted, why?

when user input a character and press enters to take next input, output window asks to press any key and exit, please help me out to get remaining code working,

Here is the code


char r, R;
char c;

int channels;

int resedential()
{
    // float channelscost = costperchannel*channels;
    // float Bill = channelscost+processingfee+basiccost;
    // cout << "Dear Customer Here is Your Bill" <<"  "<<Bill<<endl;
}

int main()
{
    cout << " Enter Customer Type" << " " << endl;
    cin >> c;

    if( c == r || R )
    {
        cout << " Enter Customer Type" << " " << endl;
         cin >> c;
     }
}

Aucun commentaire:

Enregistrer un commentaire