Search:

Type: Posts; User: armen

Search: Search took 0.00 seconds.

  1. @dmh2000: I think I figured out what you meant. I...

    @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...
  2. Thank you Soma for your reply, I thought I...

    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 =...
  3. determining the size of a nested struct with allocated variables

    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...
  4. This is a late response but thanks to all your...

    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
  5. Replies
    9
    Views
    1,398

    Ok , but why wouldn't Trans[][] hold the values...

    Ok , but why wouldn't Trans[][] hold the values assigned to it in the SetTransformMatrix()?
  6. I think i confused you with 2D array when i said...

    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] ?
  7. how is the right side one int? in my...

    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...
  8. Replies
    9
    Views
    1,398

    Array and classes problem

    Sorry tabstop, I completed the question and made it better.
    -----------------------------------------------------------

    I have a class like such:



    class Sphere
    {
    public:
  9. problem with double array assignment with a single type

    i have two structures declared as such:


    struct rtpkt {
    int src; /* source router */
    int dst; /* destination router (immediate neighbor) ...
Results 1 to 9 of 9