1. Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as:

    All that and more! Registration is quick, simple and absolutely free. Join our community today!

Help C Programming ( Press [Y] to continue, [X] to exit...)

Discussion in 'Coding, Programming' started by xSilent, Oct 6, 2013.

  1. xSilent

    xSilent Support Team Staff Member Support Team

    Pa help po nito mga bossing :D

    Code:

       Sorry you need to Register / Login to see this Codes!    

    pano po yan iprogram? :D

    mali mali kasi saken eh.. di daw pwede ma convert into "int" :(
    sana po may maka tulong
     
    tonnackscool likes this.
  2. Causing Glenn

    Causing Glenn daemonX Staff Member Moderator

    int main()
    {
    char choice; //declaration

    printf("Press [Y] to continue, [X] to exit");

    switch(choice)
    {
    case 'Y':
    case 'y': (put your function calls or continuation statements here)
    break;
    case 'X':
    case 'x': exit();
    break;
    default: printf("Invalid Choice");
    }
    return 0;
    }
     
  3. xSilent

    xSilent Support Team Staff Member Support Team

    try ko to mamaya :D sana mag work ^_^ salamat bossing (y) di ko kasi ma do..while eh.. di din ma if() :dead:
    sana ma ok na to :D
     
  4. Causing Glenn

    Causing Glenn daemonX Staff Member Moderator

    pwede mo din ilagay sa loob ng do-while loop ang switch statement (y)
     
  5. xSilent

    xSilent Support Team Staff Member Support Team

    ahh sge po.. do-while, for(;;), while(), nested loops, pa lang po kasi tinuro sa amin eh..

    may gotoxy pa kami.. baka advance lang to masyado XD eto sakin eh
    Code:

       Sorry you need to Register / Login to see this Codes!    

    kaso di daw ma convert into "int" ang "char"
     
Tags / Keywords: