Search:

Type: Posts; User: goldz

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    2,498

    Think of a room. Your room might have a table, a...

    Think of a room. Your room might have a table, a bookshelf, your computer, walls, lighting, etc , but the actual "room" isnt a single physical object, its an abstract idea. Another common example...
  2. Replies
    9
    Views
    2,121

    Ok, well here's my situation. My base class is...

    Ok, well here's my situation. My base class is Item, and the derived classes (for now) are armor and weapons, although i do plan on adding other types(potions,scrolls,etc). The unrelated class is...
  3. Replies
    10
    Views
    1,546

    cout

    cout<< "" <<number1<< " multiplied by " << number2 << "equals" (number1 * number2);

    treat (number1 * number2) using the same technique as you did with your other variables, number1 and number2
  4. Replies
    9
    Views
    2,121

    hrmm...my base class and derived classes don't...

    hrmm...my base class and derived classes don't conflict at all, the problem I'm having is that my two derived classes are different from eachother, and so they have different functions. So, lets say...
  5. Replies
    9
    Views
    2,121

    RTTI is enabled in borland and I cant find...

    RTTI is enabled in borland and I cant find anything else that seems relevant casting or specifically dynamic_cast in the help manual or on their website. The only reason I'm using dynamic_cast here...
  6. Replies
    9
    Views
    2,121

    thx, that worked and actually makes alot more...

    thx, that worked and actually makes alot more sense. Strangly, the book im reading (teach yourself c++ in 21 days (lol yea right)) says otherwise. Also, does anyone know why this runs fine on VC++...
  7. Replies
    9
    Views
    2,121

    dynamic_cast question

    My compiler is outputting the following error: "cast from base to derived requires dynamic_cast or static_cast" even though im declaring a dynamic cast about 2 lines before. Here's my basic setup
    ...
  8. thx for the replies....for some reason I'm having...

    thx for the replies....for some reason I'm having a hard time getting a good grasp of referrers/pointers etc, most everything else has come w/ relative ease to me and I have been able to get it by...
  9. Accessing an object vs. accessing a reference to the object

    Everything seems to compile fine, but I'm getting a run-time error. What I don't understand is these are identical, the only difference being one is accessing an object directly and the other is...
Results 1 to 9 of 9