Search:

Type: Posts; User: meerajpatel

Search: Search took 0.00 seconds.

  1. Need help with using reserve for vector of objects in C++

    Hello everyone,

    I am still learning C++ and trying to use reserve for vector in my project. In fact I am just trying to solve the memory problem and so I am guessing that I can possibly use...
  2. Replies
    8
    Views
    1,914

    Hi, I understood that I my algorithm is trying...

    Hi,

    I understood that I my algorithm is trying to allocate more memory. I tried to reduce the input and it works fine. But my project is really big and I am not sure how to solve this part. Do I...
  3. Replies
    8
    Views
    1,914

    Need help with std::bad_alloc

    Hi,

    I have been working on c++ project. My project is big in size. I have added new algorithm to it. The program goes upto few clock cycles and after that it cannot dispatch more instruction and...
  4. Replies
    10
    Views
    2,803

    like I have this code here unsigned int...

    like I have this code here


    unsigned int current_context = sim_cycle % cores[core_num].context_ids.size();
    int disp_context_id = cores[core_num].context_ids[current_context]; std::vector<int>...
  5. Replies
    10
    Views
    2,803

    not the vector but correct C code that is...

    not the vector but correct C code that is equivalent to vector.
  6. Replies
    10
    Views
    2,803

    C++ vector to C

    oh I think I didn't explain it right. I need to use it in C program and not convert just C++ vector to array. I need C code as I am using C copiler (GCC) and this structure will be the part of my C...
  7. Replies
    10
    Views
    2,803

    convert C++ vector into C

    first of all sorry for not posting properly since i am first time user. I just want to convert the below code into C from C++ vector. I tried to use structure and calloc or malloc but didn't work.
    ...
Results 1 to 7 of 7