I did not know this, but after googling it makes sense. Thank you.
I still do not understand why the original code compiled and ran properly, though.
Type: Posts; User: vincible
I did not know this, but after googling it makes sense. Thank you.
I still do not understand why the original code compiled and ran properly, though.
Adding vector in the header file didn't change anything. (And if adding that line had helped, I would wonder why the lack of #include <vector> in the one-file version didn't lead to problems.)
...
I'm new to C++ and am having trouble implementing this extremely simple class in Visual C++:
The file testClass.h contains:
#ifndef TESTCLASS_H
#define TESTCLASS_H
class testClass
{