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...
Type: Posts; User: vurentjie
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...
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...
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...
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,
...
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{
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...
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...
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:>
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...
thanks for the explanations.
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...
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...
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...
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...
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...
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...
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...
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;
thanks a lot, that is what i need,much appreciated
hi,
I am just trying to find out what the ~ does,
e.g.
number = (number + 3) & ~3;
any help?
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...
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...
i ran into this exact same problem if it wasn't for this forum i would have been stuck