I have forgotten
my Password

Or login with:

  • Facebookhttp://facebook.com/
  • Googlehttps://www.google.com/accounts/o8/id
  • Yahoohttps://me.yahoo.com
Index » Programming » C/C++ »

c++,binary calculator.need help!!!!

john\′s Photo
10 Oct 08, 3:12PM
c++,binary calculator.need help!!!!
Add a do-while loop to your code, i.e. the front and end should look like this
// ... what-ever you have above, prior to the main
void main()
{
  do
  {
 
  //... the rest of your original code goes here ...
 
  } while(1)
}
then this program will keep going forever.

You might like to replace the '1' in 'while(1)' with a nicer condition, so for example it breaks when the user types 'q'.
Currently you need to be logged in to leave a message.