Search:

Type: Posts; User: dxfoo

Page 1 of 12 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: My first program

    by dxfoo
    Replies
    11
    Views
    1,076

    They do the same thing. They store a string. Use...

    They do the same thing. They store a string. Use OO as a tool.

    This debate isn't worth discussing. Forums continue to prove it's just people babbling back and forth and following the leader. Good...
  2. Replies
    20
    Views
    4,849

    Anyone who works professionally knows why this is...

    Anyone who works professionally knows why this is important to understand. When you get a career in programming you'll find ancient code written like this perhaps for an older compiler. The world is...
  3. Replies
    11
    Views
    1,012

    I think checking the compiler's documentation is...

    I think checking the compiler's documentation is the best bet on a null pointer. But it wouldn't hurt adding a condition some programmers expect, just for the sake of not getting into this arguement....
  4. Replies
    11
    Views
    1,012

    Can't argue there. Thanks!

    Can't argue there. Thanks!
  5. Replies
    11
    Views
    1,012

    p_stck is the dynamic array. If I'm...

    p_stck is the dynamic array.

    If I'm understand that right, it's always good to check for null before freeing then just to be on the safe side.
  6. Replies
    11
    Views
    1,012

    Question on free()

    I come from a C++ background where 'delete' was different if you're working with an array of memory. With free(), does it delete the array automatically?



    #include <stdio.h>
    #include...
  7. Replies
    20
    Views
    4,849

    That's another one - good!

    That's another one - good!
  8. Replies
    6
    Views
    1,958

    A really good book that helped me go from C to...

    A really good book that helped me go from C to C++ was C++: The Complete Reference, 4th Edition. The first section is C89 since it's a base document for the C++ standard, so it examines that first....
  9. Replies
    20
    Views
    4,849

    Well it's a C99 header, so it depends on the...

    Well it's a C99 header, so it depends on the compiler. The one I'm using doesn't contain stdbool.h.
  10. Replies
    20
    Views
    4,849

    hahaha. Interesting how it still compiles without...

    hahaha. Interesting how it still compiles without the header.
  11. Replies
    20
    Views
    4,849

    Test your C knowledge

    Just having fun with this... What's wrong with this code while compiling on a C89 compiler?



    #include <stdio.h>
    #include <stdlib.h>
    #include <stdbool.h>

    add(a, b)
    int a;
  12. Replies
    3
    Views
    1,638

    I get it now. I'm passing an address to the...

    I get it now. I'm passing an address to the function. The formal parameter contains the address. So I don't have to specify '&' again. If you do it can do bad things!
  13. Replies
    3
    Views
    1,638

    Oh, I got it. I don't get it though. I...

    Oh, I got it. I don't get it though.

    I changed
    fread(&p_Actor, sizeof(ACTOR), 1, fp);

    to
    fread(p_Actor, sizeof(ACTOR), 1, fp);

    The PC object is passed to Actor_Load() as a reference....
  14. Replies
    3
    Views
    1,638

    Loading structure from file

    This code saves an actor to a file. After modifying the age, I load the actor back from file. What's strange is it still has the modified age. I would expect it to be 28 again? Edit: The loading...
  15. Replies
    5
    Views
    1,561

    Got it. And nice to meet another Portlander!

    Got it. And nice to meet another Portlander!
  16. Replies
    5
    Views
    1,561

    Makes sense. I guess it's in the C spirit too :)

    Makes sense. I guess it's in the C spirit too :)
  17. Replies
    5
    Views
    1,561

    Single comment line without C99?

    For several years I've been use to the single ('//') comment line in C++. I know in C89 this isn't standard, but it is in C99. Is it common to use it anyway? Is it widely portable? Thanks.
  18. Replies
    9
    Views
    1,130

    Looks like another book I'll have to read :)

    Looks like another book I'll have to read :)
  19. Replies
    11
    Views
    3,447

    Agreed, I thought I was alone on this. Personally...

    Agreed, I thought I was alone on this. Personally I would like to see a professional site where you have to prove a track record of completing a game or two before becoming a member of the forums....
  20. Replies
    7
    Views
    1,889

    Ah, yes... my mistake. But seriously, work on the...

    Ah, yes... my mistake. But seriously, work on the attitude. Some of us come from a professional background and looking at your post just sounds really amateur and rude.
  21. Replies
    7
    Views
    1,889

    Adding you to my be aware / PMS developer list. ...

    Adding you to my be aware / PMS developer list.

    And there is no such member for the structure I'm using. Read on and get some pills.
  22. Replies
    7
    Views
    1,889

    For extra info, I'm getting '0' for...

    For extra info, I'm getting '0' for osInfo.dwPlatformId.
  23. Replies
    7
    Views
    1,889

    Getting the user's OS

    I'm trying to detect a user's OS but I'm not getting the correct results. Is there something I'm missing?



    OSVERSIONINFO osInfo;

    // Get Windows version.
    ZeroMemory(&osInfo,...
  24. Replies
    6
    Views
    3,528

    Interesting. Are there any books or tutorials...

    Interesting. Are there any books or tutorials that teach this in depth? Aka map designing or similar.
  25. Replies
    6
    Views
    3,528

    Game maps similar to Eye of the Beholder?

    I didn't know Eye of the Beholder would be considered research after all these years. But I'm curious how they designed the maps. It might help for a near future project.

    Is this how it's...
Results 1 to 25 of 297
Page 1 of 12 1 2 3 4