sepp2k's Profile User Rating: *****

Reputation: 2242 Grandmaster
Group:
Mentors
Active Posts:
3,453 (2.34 per day)
Joined:
21-June 11
Profile Views:
57,192
Last Active:
User is offline Private
Currently:
Offline

Previous Fields

Country:
DE
OS Preference:
Linux
Favorite Browser:
Who Cares
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Who Cares
Dream Kudos:
0
Expert In:
C/C++, Functional Programming, Java, Python, Computer Science
Icon   sepp2k has not set their status

Posts I've Made

  1. In Topic: Not supposed to print PRINTED

    Posted 20 Jun 2015

    When you populate the array, you iterate from 1 to num_of_catalog (inclusive1). When you print the array, you iterate from 0 to num_of_catalog, so you're including theCars[0], which you never initialized.

    1 This causes you to access the array out of bounds in the last iteration, which isn't related to your problem, but still a problem.
  2. In Topic: Help Please: Friend Function

    Posted 18 Jun 2015

    You're defining a free function named payroll, which is not connected to the accountant class in any way and thus does not benefit from the fact that accountant is a friend of employee. You want to define accountant::payroll instead.
  3. In Topic: C++: base operand of '->' has non-pointer type "tree&#

    Posted 10 Jun 2015

    You need to use -> on pointers and . on non-pointers. You're doing it the other way around (using -> on tree, which is not a pointer, and then . on root, which is a pointer).
  4. In Topic: g++ -o complilation problem

    Posted 8 Jun 2015

    View Postjjl, on 08 June 2015 - 05:30 PM, said:

    Quote

    g++ -o reciprocal main.o reciprocal.o

    This expects that you have used the (-c) flag to perform separate compliation on main and reciprocal source. I'm assuming that your probably didn't compile them seperatly


    If that were true, wouldn't the error message be that the files do not exist?
  5. In Topic: g++ -o complilation problem

    Posted 8 Jun 2015

    View PostCoderNull, on 07 June 2015 - 05:30 PM, said:

    full code please! :bananaman:/>


    I see no reason to believe that that wasn't the full code.

My Information

Member Title:
D.I.C Lover
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Years Programming:
15
Programming Languages:
Haskell, Ruby, OCaml, SML, F#, Scala, Racket/Scheme, Vala, C#, C++, Java

Contact Information

E-mail:
Private
ICQ:
ICQ  205544826
Jabber:
Jabber  sexykane86@jabber.ccc.de