@dmh2000: I think I figured out what you meant. I had to re-learn how the OS allocated blocks inside the heap, and i figured out I was allocating blocks in the Database_open function, by traversing...
Type: Posts; User: armen
@dmh2000: I think I figured out what you meant. I had to re-learn how the OS allocated blocks inside the heap, and i figured out I was allocating blocks in the Database_open function, by traversing...
Thank you Soma for your reply,
I thought I allocate those in Database_open function. Where I have:
for(t_i = 0 ; t_i < conn->db->MaxRows ; t_i++)
{
conn->db->rows[t_i].name =...
This code is from LearnCtheHardWay Chapter 18 Exercise 17: Heap And Stack Memory Allocation. (18 Exercise 17: Heap And Stack Memory Allocation)
In the Extra credit section, it asks you to input...
This is a late response but thanks to all your responses.
I used a loop, since there are only 15 items.
But I wanted to code correctly,(considering the case of having 999999999999 items).
-cheers
Ok , but why wouldn't Trans[][] hold the values assigned to it in the SetTransformMatrix()?
I think i confused you with 2D array when i said double.
so considering the variable
int dist[N][N]
and
int mincost[N]
and can't have mincost to point to dist[N], by setting mincost = dist[N] ?
how is the right side one int? in my understanding, (apparently a wrong one)
doublearray[10][10] is an array of double pointers, so doublearray[1] is pointing to a location in memory that is the...
Sorry tabstop, I completed the question and made it better.
-----------------------------------------------------------
I have a class like such:
class Sphere
{
public:
i have two structures declared as such:
struct rtpkt {
int src; /* source router */
int dst; /* destination router (immediate neighbor) ...