it must be someting like that (but still wrong):
Code: Select all
// this is combinadic.h
#include "wildcat.h" // namespace wc
class Combinadic
{
private:
int **dic;
int size, nlayer;
void make_comb( int *tmp, int *seq, int n, int s, int a );
void write2dic( int *data, int last );
public:
explicit Combinadic( int init_nlayer );
~Combinadic();
int get_size() const;
void print() const;
// friend void wc::set_prob( Combinadic &comb );
};
// this is wildcat.h
#include "combinadic.h" // class Combinadic
#include "layer.h"
#include <map>
#include <string>
namespace wc
{
using namespace std;
extern map<string, double> *prob;
extern int prob_size;
extern Layer **layer_data;
extern void set_prob( Combinadic &comb );
extern void print_prob();
}
thanks