Search:

Type: Posts; User: GrNxxDaY

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    815

    I've used Visual Basic 6.0 before, but not Visual...

    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
  2. Replies
    39
    Views
    3,006

    none of thta makes much sense to me. how can i...

    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?
  3. Replies
    40
    Views
    6,210

    thakns so much salem.. i'll try that out

    thakns so much salem.. i'll try that out
  4. Replies
    40
    Views
    6,210

    Passing Constant Pointers to Pointers

    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...
  5. Replies
    39
    Views
    3,006

    wha

    wha
  6. Replies
    40
    Views
    6,210

    here it is so far

    here it is so far
  7. Replies
    40
    Views
    6,210

    Okay all - thanks so much! I'm pretty sure that...

    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...
  8. Replies
    40
    Views
    6,210

    i think i made it work also, but with one less *...

    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]; ...
  9. Replies
    40
    Views
    6,210

    To me it doesn't matter whose right - try not to...

    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...
  10. Replies
    40
    Views
    6,210

    SALEM SALEM SALEM, u might be a genious, i did ...

    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...
  11. Replies
    40
    Views
    6,210

    What does that do? Not sure I understand how/why...

    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...
  12. Replies
    40
    Views
    6,210

    somehow that makes no sense to me. room holds...

    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...
  13. Replies
    39
    Views
    3,006

    huh?

    huh?
  14. Replies
    40
    Views
    6,210

    salem, are you saying i can skip that other code...

    salem, are you saying i can skip that other code and just use yours & it will work?
  15. Thread: Address book

    by GrNxxDaY
    Replies
    7
    Views
    1,538

    Poll: not bad. i would make the display option more...

    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.
  16. Replies
    39
    Views
    3,006

    i'm trying to make a game that i can use the...

    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...
  17. Replies
    4
    Views
    1,132

    sayeh... can you tell me if i am understanding...

    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..?
  18. Replies
    40
    Views
    6,210

    i was wondering if you could explain a bit more...

    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
  19. Replies
    40
    Views
    6,210

    that would declare it either globally or on the...

    that would declare it either globally or on the stack - which i don't want. i'd like it on the heap.
  20. Replies
    39
    Views
    3,006

    hmm.. for me, its still immediatly frozen once it...

    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...
  21. Thread: gotoxy

    by GrNxxDaY
    Replies
    9
    Views
    1,183

    d00b's right. but true can be any non-zero value...

    d00b's right. but true can be any non-zero value also
    false = 0
    true != 0
  22. Replies
    40
    Views
    6,210

    I know the exact size of the array in the program...

    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...
  23. Replies
    39
    Views
    3,006

    i like it! i was expecting little pieces of text...

    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...
  24. Replies
    4
    Views
    1,132

    Arrays on Heap

    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]...
  25. Replies
    6
    Views
    1,050

    if you're gonna pass the Character to different...

    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...
Results 1 to 25 of 139
Page 1 of 6 1 2 3 4