Hello, Let's assume I have a "Vec" class which is a wrapper of std::vector. The only private variable of "Vec" is just a std::vector object....
Can somebody tell me why this code does not work and how to fix it? It compiles but runtime errors appear: #include <iostream> #include...
Hello all, can anyone tell me how can i make the following code to work fine in MVS and GNU compiler? This code will work only for MVS. GNU...
Hello, Let's say we have a 'Vec' class that it is defined using the vector class. Also, let's assume i have overloaded the function operator,...
Hello, could someone explain me why this two codes work? I got surprised when I found out that I can use either push_back() method or direct...
Hello, both codes below do exactly the same and both are working. Here is my question for those more experienced. Which of the two codes below...
Hello, I am trying to rewrite the two snippets below using the vector class. Can anyone guide me in how to do it? For example, can I return a...
Hello, I have a vector member and want to reallocate memory. Say I have 10 elements in a vector "vec" and I don't need them any more, so they...
Dear All, I would like to receive comments on the following problem. Suppose you have a matrix K and a matrix M. Matrix M is small compared to...
Separate names with a comma.