Search:

Type: Posts; User: Ashes999

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    27
    Views
    1,883

    Ach, so embarrased..can't believe I missed that...

    Ach, so embarrased..can't believe I missed that comma.

    Derived classes inherit protected fields too, I think, is what the guy was trying to say...
  2. Replies
    27
    Views
    1,883

    Ahhh, awesome, it works, minus the following...

    Ahhh, awesome, it works, minus the following constructer, which gives me a "Parse error before { token":



    Room::Room(string newDesc, int newNorth, int newEast, int newSouth, int newWest, int...
  3. Replies
    27
    Views
    1,883

    Hmm, I never knew you could do that...thanks,...

    Hmm, I never knew you could do that...thanks, I'll try it.
  4. Replies
    27
    Views
    1,883

    Ahhhhhhh, I knew it was something absurdly...

    Ahhhhhhh, I knew it was something absurdly simple! Thanks!
  5. Replies
    27
    Views
    1,883

    Bungled Inheritence: Layered Constructors

    I'm *positive* someone has asked this before...but I couldn't find it in the search, sorry, so I'm asking again.

    I have a base class called Object, with the following constructor:

    Object.cpp:
    ...
  6. Replies
    3
    Views
    1,796

    Tried it. Read about 4 pages worth of...

    Tried it. Read about 4 pages worth of stuff...nothing. Figured it'd be quicker to ask. I looked it up in my reference book, but it's not there....

    Ah, point to anything eh? Hmm...what use...
  7. Replies
    3
    Views
    1,796

    Uses for Void Pointers

    Can someone please refresh my memory as to the uses of a void pointer?

    Eg.

    void *vPtr;

    ...I think it had something to do with creating pointers to functions, or typecasting, or something,...
  8. Replies
    2
    Views
    2,925

    Sweeeeeeeeeeeet. Thanks...I'll just use that in...

    Sweeeeeeeeeeeet. Thanks...I'll just use that in the future :)

    --Ashiq
  9. Replies
    2
    Views
    2,925

    Ohhh, wow. That seems so simple now, I can't...

    Ohhh, wow. That seems so simple now, I can't believe I missed it before. Thanks!

    --Ashiq
  10. Replies
    2
    Views
    2,925

    Makefile Newbie: Inheritance Question

    I'm a bit new to makefiles, so pardon me if this question is really foolish.

    If I have a single class called Entity, my makefile will be as follows:



    CCC = mingw32-g++
    BINARIES = Main.o...
  11. Replies
    8
    Views
    1,266

    Ack...sorry. Hammer: the FAQ is for character...

    Ack...sorry. Hammer: the FAQ is for character array manipulation...which is cool...but strings would've been better :(

    Anways...I realized the solution, and yes, I remember that it's pointers...
  12. Replies
    8
    Views
    1,266

    Command Line Argument Comparison

    Hmm, I'm having some trouble with this.

    I want to check if the second argument (argv[1]) is equal to "-debug".

    so what I've done is...well, see below. None of the if statements register as...
  13. Replies
    10
    Views
    1,979

    I disagree somewhat with the way you say we...

    I disagree somewhat with the way you say we should do public functions. Maybe if they're ALL using set/gets, that would be kind of...crap. But using set functions in particular ensures that you...
  14. Replies
    3
    Views
    1,218

    Whoa, thanks. Simple solution. My copyover into...

    Whoa, thanks. Simple solution. My copyover into a char array was really messed anyway...peace!

    --Ashiq
  15. Replies
    3
    Views
    1,218

    C++: String to Integer cast

    I have a string, taken via a substring. I need to convert it into an integer. The string is of class string. I.e.:



    string line;
    // line inputs from a file...
    int index= line.find(' ',0);...
  16. Replies
    10
    Views
    1,979

    Sounds about right to me. Thankee! --Ashiq

    Sounds about right to me. Thankee!

    --Ashiq
  17. Replies
    10
    Views
    1,979

    Trivial: Get/Set + Function Order in Classes

    Bit of a trivial question here, but anyway.

    I've decided to order my class functions alphabetically, so I can find what I need quicker.

    The problem is, I have a ton of get/set functions for...
  18. Replies
    3
    Views
    1,754

    Uninitialized pointerse point to a location in...

    Uninitialized pointerse point to a location in mem. If you don't assign them values, they use the values that are already in the little ram piece they've selected.

    try this and see for yourself:...
  19. Replies
    16
    Views
    2,174

    This is a bit of an advanced technique, but you...

    This is a bit of an advanced technique, but you can use a pointer to a function to clean up your operand code.

    For example:



    #include <iostream.h>
    #include <stdlib.h>

    int addition (int...
  20. Auto-backup : Makefiles (Eclipse and CDT specifically)

    I dunno if anyone even uses Eclipse, but I'm pretty sure this is applicable to any make-file using environment.

    My friend (with a little help from me) made a C executable that uses winrar to...
  21. Replies
    3
    Views
    1,050

    If the system("pause") thing annoys you, there's...

    If the system("pause") thing annoys you, there's a way around this.

    I recently downloaded Eclipse , which has a C/C++ development thingy called the CDT.

    You download both, and it's a bit...
  22. Replies
    1
    Views
    2,379

    2D Arrays: Column/Row Order

    I've noticed something odd in most of the books/tutorials I've read that deal with 2D arrays, including the current book I'm reading, Tom Swan's C++ Primer (1992).

    From what I've read, in C++, the...
  23. Replies
    5
    Views
    5,359

    Erm, I tried including , but it...

    Erm, I tried including <commctrl.h>, but it didn't help..

    As for including all the proper files...I included all the header files and library files that I could find in the downloaded packages. ...
  24. Replies
    5
    Views
    5,359

    DX9 and Dev-C++

    Win2k pro, using Dev-C++.

    Urggghhhh! Well, I managed to find and download a DX9 package for Dev-C++. I also downloaded the DX9SDK.

    I configured my compiler correctly, I assume; I added the...
  25. Replies
    7
    Views
    1,152

    Hmm. Is that so? That's good news! I actually...

    Hmm. Is that so? That's good news! I actually already have the DX SDK...versions 7 and 8 and 9. So I'm good to go.

    However...quite a few poeple have mentioned things like "VC++ is the industry...
Results 1 to 25 of 37
Page 1 of 2 1 2