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
Type: Posts; User: cram
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
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...
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...
no it still gives me the same error, any other suggestions?
I have a header and body code as follows:
#pragma once
typedef void * Comparable;
class Sort1
{
public:
Sort1(void);
~Sort1(void);
yah that last line seems to work thanks
essentaially thats what ive done except with the pointer stuff its not working. This line
item = origionalstack.pop(); is not functioning. Thanks
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"
...
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());...
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...
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...
hmm that doesnt seem to be working however ill move this thread to windows programming
im really sorry if this is in the wrong section, where should it go, game programming?
can you possibly explain more, what do i need to do in the headers in order for it to display the GUI?
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...
haha dont bet on it, thanks for the help though
yah thats what i have to do, any suggestions on how to do that? thanks a bunch
hmm okay but does that mean when i go to cout that array, will it display a T or a 10?
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 ++;
}
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...
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)....