// Class automatically generated by Dev-C++ New Class wizard
#ifndef KOSZ_H
#define KOSZ_H
#include "owoc.h"
#include <cstdlib>
#include <list>
class kosz
{
private:
list<owoc*> owoce;
public:
kosz();
~kosz();
void Zawartosc();
void DodajK(owoc *o);
int WagaK();
};
#endif
owoc.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
// Class automatically generated by Dev-C++ New Class wizard
#ifndef OWOC_H
#define OWOC_H
class owoc
{
private:
int waga;
public:
virtualvoid PrzedstawSie();
int ZwrocWage();
owoc();
~owoc();
};
#endif // OWOC_H
Problem
1 2
11 xxx\kosz.h ISO C++ forbids declaration of `list' with no type
11 xxx\kosz.h expected `;' before '<' token