error: strcpy was not declared in this scope

Observations: #include <cstring> should introduce std::strcpy(). using namespace std; (as written in medico.h) introduces any identifiers from std:: into the global namespace. Aside from using namespace std; being somewhat clumsy once the application grows larger (as it introduces one hell of a lot of identifiers into the global namespace), and that you should never use … Read more

How to initialize a vector of pointers

A zero-size vector of pointers: A vector of NULL pointers: A vector of pointers to newly allocated objects (not really initialization though): Initializing a vector of pointers to newly allocated objects (needs C++11): A smarter version of #3:

How to get Current Directory?

I would recommend reading a book on C++ before you go any further, as it would be helpful to get a firmer footing. Accelerated C++ by Koenig and Moo is excellent. To get the executable path use GetModuleFileName: Here’s a C++ function that gets the directory without the file name:

Debug assertion failed

The problem is that the function list::Subset(list subset) takes its argument by value causing a copy of the list to be made. Since you did not follow the Rule of Three (as noted in Chris’ comment) a shallow copy is made. This means that two instance of list “own” the pointers. When the Subset function … Read more

cannot declare variable ‘’ to be of abstract type ‘’

The reason the base class is abstract is this pure virtual function: The derived class DisablePairCollision attempts to define that function, but it does not do it correctly: As you can see, some of the arguments have different types. E.g. colObj0 is of type const btCollisionObject*, but it should be of type const btCollisionObjectWrapper*. Therefore, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)