Search:

Type: Posts; User: 127.0.0.1

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    1,136

    Thanks, iMalc I guess the mystery is solved now!...

    Thanks, iMalc I guess the mystery is solved now!

    Just one more quick question, do you happen to know of any resources I could look at to further understand how this object (or objects that share a...
  2. Replies
    8
    Views
    1,136

    Ah, so if I understand this correctly the union...

    Ah, so if I understand this correctly the union could have been a structure with 2 members (a pointer and an element of _type_), but to save memory this was not done since the structure would only...
  3. Replies
    8
    Views
    1,136

    Haha, that is quite a turn of phrase there. But...

    Haha, that is quite a turn of phrase there. But this code is actually from the Doom 3 BFG GPL released recently so I assume its organization has a purpose.

    A link to the file:...
  4. Replies
    8
    Views
    1,136

    Why would you want to allocate a buffer of size...

    Why would you want to allocate a buffer of size _type_ (plus padding) if the first couple bytes were to be interpreted as a pointer?
  5. Replies
    8
    Views
    1,136

    Help understanding unions

    I was reading through a C++ template whose purpose was to allocate memory blocks (_type_ is the generic type passed). It seems to me the purpose of this code would be to create a byte aligned buffer...
  6. Replies
    7
    Views
    1,411

    Well, I got warnings with code I wrote to test it...

    Well, I got warnings with code I wrote to test it and with the code you posted.



    And I had read a post I found on a google search big decimal integer constant warning - C / C++. So I was unsure...
  7. Replies
    7
    Views
    1,411

    Thanks for the quick response Sorry about...

    Thanks for the quick response



    Sorry about that. I will make sure to fix that in future posts.



    Ah okay, so the constant 255 is treated as a regular int. Are all constants in C assumed to...
  8. Replies
    7
    Views
    1,411

    Help with complicated and strange magic

    I was going through and commenting c++ source code to gain a better understanding of it, when I came across this range checking code. I would like to know what the maximum call to LargeAllocate would...
  9. Replies
    4
    Views
    7,407

    Great, thanks Tater and angel for the help

    Great, thanks Tater and angel for the help
  10. Replies
    4
    Views
    7,407

    Bitwise AND return value?

    Sorry if this question is simple, but I was unable to verify what this line of code does through google searching.

    I am confused as to how the if statement with the bitwise AND is evaluated.


    ...
  11. Replies
    6
    Views
    1,713

    I made that post after the one I made on this...

    I made that post after the one I made on this forum.

    EDIT:
    And why does it matter why I would want to? Maybe I want to create a game on the quake engine and sell it on Xbox Live, or maybe I would...
  12. Replies
    6
    Views
    1,713

    I would like to post a link for anyone curious...

    I would like to post a link for anyone curious about using C with XNA to a post I made on the App Hub forums (Using plain C with XNA? - App Hub Forums)
  13. Replies
    6
    Views
    1,713

    Using C with XNA?

    Is it possible to port a game engine like quake 2 to the Xbox through XNA or is there an alternative to XNA for use with C/C++? I have searched the web and was unable to find a concrete answer to...
  14. Replies
    2
    Views
    2,663

    You're always helpful salem :). The source...

    You're always helpful salem :). The source navigator is exactly what I was looking for, thanks
  15. Replies
    2
    Views
    2,663

    Documentation tools for C

    Are there any open source tools available to analyze c source files so that I can input a source file and get a list of inclusions, types, global variables, and functions? I was unable to find any...
  16. Replies
    3
    Views
    1,161

    Thanks for the suggestions and analysis :), this...

    Thanks for the suggestions and analysis :), this is mostly a personal project that I am doing for educational purposes so I would like to create my own that improves on the given code.
  17. I do not use Turbo C++, but a quick google search...

    I do not use Turbo C++, but a quick google search turned this up (this quote references other steps in the link):

    Turbo C++ 4.5 Instructions


    Sorry if this isn't helpful
  18. Replies
    3
    Views
    1,161

    Help understanding hash function

    I am looking over code that implements a linked list where one of its members is a string value -- to deal with this they used a hash table to quickly find elements. Although I do understand hash...
  19. Replies
    2
    Views
    1,046

    Got it working, thanks for the advice :)

    Got it working, thanks for the advice :)
  20. Replies
    2
    Views
    1,046

    Including header files

    I apologize if this is a simple question, but I am having trouble including header files into my main program body. For example, I will have all of a library's prototypes in the Library.h file and...
  21. Replies
    5
    Views
    995

    Excellent, thanks for the clarification

    Excellent, thanks for the clarification
  22. Replies
    5
    Views
    995

    Relying on order of execution

    Is it bad practice to assume the proper (left to right) execution of boolean expressions for simplicity?

    Reliant code:

    if(
    !Is_Next_Match(Parser, TOKEN_WEIGHT) ...
  23. Replies
    3
    Views
    1,978

    Any pointers inside of structs start pointing to...

    Any pointers inside of structs start pointing to nothing. You have to allocate space for them:


    fat pfat;
    pfat->dir_array = (dir *)malloc(sizeof(dir));
    pfat->dir_array->root_dir=0;

    EDIT: If...
  24. Awesome, I've got it working. This solution is...

    Awesome, I've got it working. This solution is exactly what I was looking for.

    Thanks again for the help lazerlight :)
  25. Replies
    7
    Views
    1,795

    An element of a char array is a char not a...

    An element of a char array is a char not a string. Using a double quote denotes a string i.e " ", using a single quote denotes a character ' '.

    This should fix it:


    if (st[i] == ' ') // this...
Results 1 to 25 of 92
Page 1 of 4 1 2 3 4