Code::Blocks 16.01 it is.
How can auto complete be the issue? Could you elaborate? The auto complete does indeed recognize classes correctly.
I thought the exact code is redundant, but here it is. Trying to give "Ally" a "cardname" throws an error during compilation: cardname not declared in this scope.
#ifndef CARD_H
#define CARD_H
#include <string>
using namespace std;
class Card
{
public:
Card();
virtual ~Card();
protected:
int cardnumber;
string cardname;
private:
};
#endif // CARD_H
#ifndef ALLY_H
#define ALLY_H
#include <string>
#include <vector>
class Ally : public Card
{
public:
Ally(int mycardnumber, string mycardname, int mypower, int mystage, string mycategory);
virtual ~Ally();
protected:
int power;
int stage;
vector<string> category;
private:
};
#endif // ALLY_H