Search:

Type: Posts; User: vurentjie

Search: Search took 0.01 seconds.

  1. Replies
    11
    Views
    1,840

    another question

    I thought I'd put this here, as another follow on,

    I am trying to understand something else about how memory will be organized in examples such as the following...




    struct OfSize8{OfSize8...
  2. Replies
    11
    Views
    1,840

    re

    thanks,

    i spent a good deal of today reading and reading on c and memory,

    today i realized that my understanding of c-syntax and coding is reasonably ok, but i have been lacking in the general...
  3. Replies
    11
    Views
    1,840

    reply

    I don't !!...anymore. I will use specific type or void depending on how many different types I need to assign to an id.


    I am experimenting with data structures, and more specifically want to...
  4. Replies
    11
    Views
    1,840

    reply

    I do realize I can use forward declaration and actual type - which is probably the best idea, but I wanted to know if it would be acceptable.

    I think I should have casted the address,




    ...
  5. Replies
    11
    Views
    1,840

    int pointer to memory address

    Hi,

    Just want to know if int *Group_ID is acceptable to refer to memory address, I test and it works.
    Just a quick scrap of code without any mem management, ...




    typedef struct Object{
  6. Replies
    13
    Views
    1,428

    thanks man, its not so much that i mess up with...

    thanks man, its not so much that i mess up with pointers, but was having a bit of a paranoid moment i guess, and actually felt kinda silly when i realized how silly i was sounding, i am not quite...
  7. Replies
    13
    Views
    1,428

    hi, came check other replies for interest,...

    hi,

    came check other replies for interest,
    as this last post is suggesting, this is exactly how i went about implement a uniqe id,
    using the address is not something that crossed my mind, but...
  8. Replies
    13
    Views
    1,428

    yes thanks

    ja thanks,

    i came here a few minutes ago, read your post, told myself i was being lame and went put together something, i am glad to say that i will be able to do this:>
  9. Replies
    13
    Views
    1,428

    best way to uniquely tag a node

    hi just a quik query,

    i am trying to implement unique id's for list nodes, that are safe, and can be locked,

    in php or javascript i find this easy, and can do this in ways not possible in c...
  10. Replies
    3
    Views
    3,611

    thanks for the explanations.

    thanks for the explanations.
  11. Replies
    3
    Views
    3,611

    command line arguments

    this is merely out of curiosity,

    i have read a couple of articles recently on the arguments that get parsed/passed(?) by int main , and some of the situations where these arguments are...
  12. Replies
    13
    Views
    9,894

    thanks, did not realise that - would probably...

    thanks, did not realise that - would probably have found out the hard way, but essentially if i do include the said header for the forward declaration wherever needed in a .c file, would using the...
  13. Replies
    13
    Views
    9,894

    been looking about, and researching for...

    been looking about, and researching for alternatives for the last while,
    for the most part i am quite happy to use extern variable struct, but as elysian pointed out to me it is also a good idea to...
  14. Replies
    13
    Views
    9,894

    guess i amback, yesterday i spent a few hours...

    guess i amback,

    yesterday i spent a few hours rewriting a small opengl program mainly to practice what we have been discussing.
    for the most part, if i think about a situation in the program, i...
  15. Replies
    13
    Views
    9,894

    this i think will be my last reply here, although...

    this i think will be my last reply here, although i do enjoy the talk,
    i come from not such a big town in south africa, and while i work as a web developer to earn my rent, i actually dont know that...
  16. Replies
    13
    Views
    9,894

    you very quick to reply, wow basically yes, my...

    you very quick to reply, wow

    basically yes, my example above is actually just a simplified example, i will probably not have a global struct for vertices, but will try have a global struct for a...
  17. Replies
    13
    Views
    9,894

    thanks for clarifying, i have read elsewhere...

    thanks for clarifying,

    i have read elsewhere about trying to avoid global variables in c type programming,
    and yes generally i agree with you, as it can become problematic when programs become...
  18. Replies
    13
    Views
    9,894

    typedef global

    hi,

    i am just trying to find out more about using one declared struct type across multiple files,
    basically if i had



    typedef struct AllPoints{
    float x,y,z;
    }Allpoints;
  19. Thread: ~ symbol

    by vurentjie
    Replies
    2
    Views
    2,070

    thanks a lot, that is what i need,much appreciated

    thanks a lot, that is what i need,much appreciated
  20. Thread: ~ symbol

    by vurentjie
    Replies
    2
    Views
    2,070

    ~ symbol

    hi,

    I am just trying to find out what the ~ does,

    e.g.
    number = (number + 3) & ~3;

    any help?
  21. Replies
    3
    Views
    5,664

    one main writes a save

    well from what i have gathered the one main function is for executing the main prog, while the other main is for writing a save file.

    Can I ask another question, purely hypothetical as I am not...
  22. Replies
    3
    Views
    5,664

    multiple main functions

    hi,

    i was perusing some source code today and came across multiple main functions in two separate files.

    I was wondering how this is possible. Does anybody know of a place I could read more on...
  23. thanks guys

    i ran into this exact same problem if it wasn't for this forum i would have been stuck
Results 1 to 23 of 23