Search:

Type: Posts; User: cram

Search: Search took 0.01 seconds.

  1. well its a variable sent in from another class, I...

    well its a variable sent in from another class, I guess I'll have to create a global variable and have it equal the value of that local variable
  2. Quick Question regarding Contructor Variables

    If i have a constructor as follows:

    CircGame::CircGame(int num_of_players, CPoint * screen_places, int steps)
    : m_steps(steps)
    , m_is_ME_OK(false){
    }

    Can i use the variable screen_places...
  3. Replies
    7
    Views
    1,777

    okay thanks for the help, but can you just expand...

    okay thanks for the help, but can you just expand on what precompiled headers are as im not to sure ive heard that before?

    Is it related to the fact im getting errors on each of my classes saying...
  4. Replies
    7
    Views
    1,777

    no it still gives me the same error, any other...

    no it still gives me the same error, any other suggestions?
  5. Replies
    7
    Views
    1,777

    Not Recognizing Include Statements?

    I have a header and body code as follows:

    #pragma once
    typedef void * Comparable;

    class Sort1
    {
    public:
    Sort1(void);
    ~Sort1(void);
  6. Replies
    12
    Views
    1,276

    yah that last line seems to work thanks

    yah that last line seems to work thanks
  7. Replies
    12
    Views
    1,276

    essentaially thats what ive done except with the...

    essentaially thats what ive done except with the pointer stuff its not working. This line
    item = origionalstack.pop(); is not functioning. Thanks
  8. Replies
    12
    Views
    1,276

    okay here is my stack code, unfortunetly it uses...

    okay here is my stack code, unfortunetly it uses a list class but hopefully you should be able to figure it out without seeing the list code:
    Stack header:

    #pragma once
    #include "list.h"
    ...
  9. Replies
    12
    Views
    1,276

    This is essentailly what i have to do (sorry I...

    This is essentailly what i have to do (sorry I wasnt clearer) however my code isnt working. This is my code:

    Stack *temptower = (Stack *) new Stack;
    for (int j = 0; j < (tower->GetLength());...
  10. Replies
    12
    Views
    1,276

    Help with Class and Pointer Syntax

    Hi,

    I have a class with a constructor
    HTblock(int width, COLORREF color);

    I also have a stack of pointers of type HTblock called tower. I need to Apply Draw() function for each HTblock in the...
  11. Replies
    2
    Views
    1,640

    Problem drawing Rectangles and Text

    Hi,

    Im programming in C++ and looking to draw a rectangle with no color fill and text in the left top hand corner. So far my code looks like this:
    #include <windows.h>
    #pragma once

    void...
  12. Replies
    7
    Views
    1,417

    hmm that doesnt seem to be working however ill...

    hmm that doesnt seem to be working however ill move this thread to windows programming
  13. Replies
    7
    Views
    1,417

    im really sorry if this is in the wrong section,...

    im really sorry if this is in the wrong section, where should it go, game programming?
  14. Replies
    7
    Views
    1,417

    can you possibly explain more, what do i need to...

    can you possibly explain more, what do i need to do in the headers in order for it to display the GUI?
  15. Replies
    7
    Views
    1,417

    Drawing Rectangles and Text

    Hi,

    I need to draw a rectangle with no color fill and text in the top left corner of the rectangle. I'm trying to use


    dc->FillRect(screen_area,&CBrush(HS_BDIAGONAL,RGB(0,255,0)));

    to draw...
  16. Replies
    13
    Views
    3,158

    haha dont bet on it, thanks for the help though

    haha dont bet on it, thanks for the help though
  17. Replies
    13
    Views
    3,158

    yah thats what i have to do, any suggestions on...

    yah thats what i have to do, any suggestions on how to do that? thanks a bunch
  18. Replies
    13
    Views
    3,158

    hmm okay but does that mean when i go to cout...

    hmm okay but does that mean when i go to cout that array, will it display a T or a 10?
  19. Replies
    13
    Views
    3,158

    okay thanks a lot for the reply, so in order to...

    okay thanks a lot for the reply, so in order to store 10 i would have to do this?



    else if (temp == 10){
    deck[i][2] = T;
    temp ++;
    }
  20. Replies
    13
    Views
    3,158

    Hi thanks for the reply, but i having trouble...

    Hi thanks for the reply, but i having trouble understanding that other thread because i dont know how that "case" stuff works, if possible, could you make it specific to my code would be Extremely...
  21. Replies
    13
    Views
    3,158

    Problem Putting INTs Into a CHAR Array

    Hello,

    I want to make a char array of a deck of playing cards. I have a 2-d char array called deck[52][2]. where each object in the array has a card value(1-10,J,Q,K,A) and a suit value(S,C,D,H)....
Results 1 to 21 of 21