Thread: Help!

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,981
    Code:
    int this_is_input;
    cin >> this_is_input;
    cout << "this is output";
    ...
    if (false);                           // <--- awnser                               
       this_will_always_execute(); //why?
    ...
    int give_me_a_value;
    give_me_a_value = 10 - 5; //NOT 10 - 5 = give_me_a_value
    ...
    //input a char
    char op;
    cin >> op;
    //compare a char
    if (op == '+') {...}
    Read your C++ book, and use code tags when posting code.

    gg

    [EDIT]
    wow, I'm a slow typer....your homework is done, now study your C++ book!!
    Last edited by Codeplug; 03-14-2003 at 09:45 PM.

Popular pages Recent additions subscribe to a feed