please it is necessary

Discussion in 'C' started by ankit sharama, Nov 15, 2011.

  1. ankit sharama

    ankit sharama New Member

    Joined:
    Jul 18, 2011
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    0
    please can some one tell me how to keep on running my cmd after performing the program one, i mean it should not ask me click any thing to continue rather then that it should ask me again the equation and keep on asking me the equations till i feel like quiting:phone::phone::phone::phone:
     
  2. herby

    herby New Member

    Joined:
    Jan 6, 2012
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    thats quite easy, all you need to do is skip that escape test in your loop and there you are;

    int x=1;

    do { //put you command here;
    and use clrscr(); or system("cls"); //not to over crowd your screen if necessary;

    } while(x=1);
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice