problem with list ;/

Hi, i really don't know what to do, can you help me ?

here is the code :

kosz.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// 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:
		virtual void 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 
you need to put above class kosz
using std::list;
thanks a lot, it's easy to forget about such a thing :D
Topic archived. No new replies allowed.