
-----------------------------------
0x8000
Thu Jun 15, 2006 7:37 pm

N00B Questions.
-----------------------------------
Hey, I just started to program today, I got bored and started reading a dumb book I found in my basement for learning C++.  I started experimenting with it and it's not too hard, I download Dev C++ and am using it to compile my programs.  So far I've learned only a bit, but I've only been studieing it for about a little over an hour.  Anyway I just decided to make my own simple math program, take any two numbers and add, subtract, multiple, or divid them.  I have it working but I don't know what the code is to keep the command window open.  I'd like to have it close by maybe pressing a hotkey, like Esc or Del...

Heres what I got:

#include 
int main()
{
    int subject, num1, num2, answr;
    
    cout  num2;
    answr = num1 * num2;
    cout 