Search:

Type: Posts; User: Hoegje

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    2,471

    Indeed, make it a template functions, or maybe...

    Indeed, make it a template functions, or maybe even just use the STL with it's container types. I'm sure there will be some sort of stack already available for you, although I am not sure which...
  2. Replies
    4
    Views
    1,975

    Yes it is, and when your object goes out of...

    Yes it is, and when your object goes out of scope, the (default) destructor for that object is called, so that will take care of all the memory cleanup for you. That is only if you haven't put...
  3. Thread: Use Code Tags!

    by Hoegje
    Replies
    9
    Views
    2,719

    #include int main(){ std::cout...

    #include <iostream>

    int main(){
    std::cout << "Hello code !";
    return 0;
    };
  4. Thread: My program

    by Hoegje
    Replies
    4
    Views
    1,034

    >> if (answer = 2); this should be "if...

    >> if (answer = 2);

    this should be "if (answer == 2)" without the quotes.

    Because you put a semicolon after this statement the compiler doesn't expect an else statement.
Results 1 to 4 of 4