Jump to content


Photo

MY first c++ program


  • Please log in to reply
5 replies to this topic

#1 the_kid

the_kid

    L337 Pwnerer of N00bs

  • Project Team
  • 1,734 posts
  • Location:La$ Vega$, NV
  • Projects:freelancing between what interests me
  •  + TRIPLEhelix

Posted 11 February 2004 - 06:24 AM

not bad, I made one just like it only it has addition, subtract, mutiplication, and division... Then an extra thing thrown in so that you don't have to reopen the program if you have to do more math... Perhaps I'll post it when I get the chance... not bad for a first program though... Good Job

#2 hellfire

hellfire
  • New Members
  • 53 posts

Posted 11 February 2004 - 12:38 PM

looks good, though I would have prolly used a switch for which function would be used. I also wanted to know what this getch() stuff people seem to put in there progs, I don't get why it's there.

#3 Detail

Detail

    King Detail

  • Hosted
  • 7,767 posts
  • Location:Dayonic
  • Projects:Dayvi.com
  •  Blu Spy

Posted 11 February 2004 - 01:30 PM

I also wanted to know what this getch() stuff people seem to put in there progs, I don't get why it's there.

To hold the information up till someone presses a button. Without it the information would flash past before you could see it.

#4 TWIXMIX

TWIXMIX
  • New Members
  • 5 posts

Posted 11 February 2004 - 07:35 PM

I havnt learned switch or anything yet.

#5 hellfire

hellfire
  • New Members
  • 53 posts

Posted 11 February 2004 - 10:12 PM

To hold the information up till someone presses a button. Without it the information would flash past before you could see it.


Hmm, I always used system pause for that.

I havnt learned switch or anything yet.


Well guss that explains it then. Don't really matter for something of this scale I guess as it would show same effect, with more lines.

#6 the_kid

the_kid

    L337 Pwnerer of N00bs

  • Project Team
  • 1,734 posts
  • Location:La$ Vega$, NV
  • Projects:freelancing between what interests me
  •  + TRIPLEhelix

Posted 12 February 2004 - 05:59 AM

I use system "pause" and getch(), depending on the program I am working on...




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users