Search:

Type: Posts; User: Elkvis

Search: Search took 0.02 seconds.

  1. Replies
    13
    Views
    3,842

    try preceding the function definition with the...

    try preceding the function definition with the keyword "inline"
    that will prevent those duplicate symbol errors, particularly when the function definition is in a header file.



    what the...
  2. Replies
    13
    Views
    3,842

    it should go somewhere after the class definition...

    it should go somewhere after the class definition of heltal, but before the definition of generate_numbers, and must be in the global scope in your program, not inside a class.
  3. Replies
    13
    Views
    3,842

    post your code please.

    post your code please.
  4. Replies
    13
    Views
    3,842

    you haven't defined a way for std:: ostream to...

    you haven't defined a way for std:: ostream to print a heltal object. you need to define a function like this:


    std::ostream& operator << (std::ostream& os, const heltal& rhs)
    {
    // the code...
Results 1 to 4 of 4