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...
Type: Posts; User: meerajpatel
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...
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...
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...
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>...
not the vector but correct C code that is equivalent to vector.
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...
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.
...