CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Diamo

Search: Search took 0.02 seconds.

  1. Replies
    13
    Views
    12,981

    Re: Including a class within another class

    Bloody hell, thanks man, that was really nice of you to post that full explanation. I'm re-writing as we speak and as you suggested I'm making a weapon a class. A lot of the code I wrote was just...
  2. Replies
    13
    Views
    12,981

    Re: Including a class within another class

    Hi All,

    It has become clear to me after designing a short test program that I am doing something fundamentally wrong in the design of my project. I tried making a short test project, stripped to...
  3. Replies
    13
    Views
    12,981

    Re: Including a class within another class

    Hi Guys,

    Firstly, sorry about the non-use of the code tag, I've updated both my posts. I hope they are a bit more readable now.

    Further points:
    1. Removed "using namespace std" from the...
  4. Replies
    13
    Views
    12,981

    Re: Including a class within another class

    Yeah, I have been 'using namespace std;' but you are of course correct.

    Enemy.h :


    #ifndef ENEMY_H_INCLUDED
    #define ENEMY_H_INCLUDED
    #include "globals.h"
    #include <iostream>
    #include...
  5. Replies
    13
    Views
    12,981

    Including a class within another class

    Hi All,

    I'm still very new to C++ so apologies in advance if I am not too clear in my description of my problem.

    I am making a text based drug dealing game which has an Class called Enemy which...
Results 1 to 5 of 5





Click Here to Expand Forum to Full Width

Featured