Search Results

Showing results 1 to 5 of 5
Search took 0.01 seconds.
Search: Posts Made By: nezhad
Forum: C Sep 24th, 2008
Replies: 10
Views: 1,942
Posted By nezhad
Dear Stilllearning and TooMpa;
paths is a pointer to a memory location that I am allocating using malloc. However, this area of memory is supposed to hold an array of a struct type. This struct...
Forum: C Sep 23rd, 2008
Replies: 10
Views: 1,942
Posted By nezhad
Narue;
I would like to thank you first for your help. After that, I hope you won't find my next question stupid. Basically, I'd like to know what is wrong with the following code?...
Forum: C Sep 22nd, 2008
Replies: 10
Views: 1,942
Posted By nezhad
How do I allocate memory for the paths pointer anyways? It is inside a struct. For example, in order to reserve memory for 600 paths per node, do I say:

node_routing_info.paths = (path_info *)...
Forum: C Sep 22nd, 2008
Replies: 10
Views: 1,942
Posted By nezhad
Thanks Narue;
But my problem is that I can't predict how many paths a node will have. Even if I define paths as a pointer to type path_info, I will have to allocate a certain amount of memory to it...
Forum: C Sep 22nd, 2008
Replies: 10
Views: 1,942
Posted By nezhad
Hello;
I have 2 questions:
1- I know you can allocate memory to an array dinamically in C and C++. But, can this be done if the array is part of a structure?
2- Can the size of a dynamic array...
Showing results 1 to 5 of 5

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC