i cave this code
#include <iostream>
#include <cstdlib>
#include <cassert>
using namespace std;
typedef int typos_akmis;
template <class typos_stoixeiou>
struct korifi
{
typos_stoixeiou dedomena;
/* i would like to do korifi<typos_stoixeiou> * ->kdktis */
korifi<typos_stoixeiou> * epomenos;
akmi<typos_stoixeiou>* kefali; /* here is the problem */
int episkeftike;
} ;
template <class typos_stoixeiou>
struct akmi
{
typos_akmis dedomena;
korifi<typos_stoixeiou> * akro;
akmi<typos_stoixeiou>* epomenos;
int simadi;
};
template <class typos_stoixeiou>
class grafos
{
public:
typedef struct korifi<typos_stoixeiou> *kdktis;
typedef struct akmi<typos_stoixeiou> *adktis;
typedef kdktis graphima;
graphima G;
public:
//All the functions
};
can someone tell me a solution to bypass these problems?
Thank you very much