I've used Visual Basic 6.0 before, but not Visual C++. All I can tell you is that VB makes it easy to work with databases & such. Can't say anything about vc++ though, sorry
Type: Posts; User: GrNxxDaY
I've used Visual Basic 6.0 before, but not Visual C++. All I can tell you is that VB makes it easy to work with databases & such. Can't say anything about vc++ though, sorry
none of thta makes much sense to me.
how can i find out if the user pressed the UP arrow key if it has the same ASCII value as one of the letters?
thakns so much salem.. i'll try that out
I have a pointer to a pointer and I'd like to pass that to a function, and have that function accept is as a constant thingy, so that function can only call const member functions (does that make...
wha
here it is so far
Okay all - thanks so much! I'm pretty sure that it works now. I guess it was so hard for me cause I have trouble looking at code and understanding what it does.
Well if any of you are interested...
i think i made it work also, but with one less * (asterik).
See anything wrong people??..
ROOM** createRooms()
{
// for a 20x5 array of ROOMS
ROOM** room;
room = new ROOM*[5]; ...
To me it doesn't matter whose right - try not to flood the thread with too much argument though.
What i'm trying to get at is this:
1) in a function, declare room as a pointer to 2-D array of...
SALEM SALEM SALEM, u might be a genious, i did
ROOM (*room)[20] = new ROOM[20][20];
and it compiled without problem. i haven' t tested out the room[3][7].whatever() thing yet, though.
i...
What does that do? Not sure I understand how/why pointers to pointers are used.
What original code?? Everyone has a different idea on how to do it and im not sure how each one works, so im still...
somehow that makes no sense to me.
room holds the address to the first of 20 pointers to ROOMs, which is stored on the heap
then each of those 20 pointers is set up to hold the address of a...
huh?
salem, are you saying i can skip that other code and just use yours & it will work?
not bad. i would make the display option more friendly.. like a display all, or i can just type the a letter and it brings me to that alphabet listing or something.
i'm trying to make a game that i can use the arrow keys on the keyboard.. but it seems that they have the same ASCII value as some letter keys, and in your code you define them the same.. how does...
sayeh... can you tell me if i am understanding this right..
pInt is a pointer to an array of 2 ints on the heap, but you dont store ints in them, you store pointers to ints..?
i was wondering if you could explain a bit more of how that code works fordy, i'm reluctant to use code that i don't understand
that would declare it either globally or on the stack - which i don't want. i'd like it on the heap.
hmm.. for me, its still immediatly frozen once it touches the ground *shrug*.
but you're game is good d00b - can't believe it only took a couple weeks... its took me 2 weeks to find out i forgot...
d00b's right. but true can be any non-zero value also
false = 0
true != 0
I know the exact size of the array in the program (its going to be a 20x20 array of ROOMS for a text rpg, but i used ints for simplicity), so can I do this?..
ROOM * create() // so i don't...
i like it! i was expecting little pieces of text floating around. LoL
one thing though... .. err.... ok like this..
[]
[][]
[] [][][][]
see that long skinny one? ican't slide it...
I'm making a game and I need a 2-D map allocated on the heap... something like this..
int * pInt = new int[2][2];
but when i try to compile, i get an error that says cannot assign from int [2]...
if you're gonna pass the Character to different functions, i would declare Luke on the heap
int main()
{
Character* Luke = new Character;
Luke->initialise(); // is initialize...