its my code pleas tell me y error occur in it.
impex.h file

#ifndef IMPEX1_H
#define IMPEX1_H

enum shapetype
{Point=1,Polyline=3,Polygon=5};


struct pointD
{
double x;
double y;
};


struct item
{
int id;
list<pointD>coordinates;
shapetype type;
};


class impex
{
public:
       
impex();    
void savekml(list<item>);

private:

};

#endif



.cpp file

#include<iostream.h>
#include<conio.h>
#include"impex.h"

impex::impex()
{}

void impex::savekml(list<item> b)
  {
  <?xml version="1.0" encoding="UTF-8"?>
 <kml xmlns="http://www.opengis.net/kml/2.2">
  <placemark>
     <name>obj2.type</name>
    <Point>
      <coordinates>obj2.coordinates.x,obj2.coordinates.y</coordinates>
    </Point>
  </placemark>
</kml>                             
  
  }


main


#include <cstdlib>
#include <iostream>
#include "impex.h"

using namespace std;

int main(int argc, char *argv[])
{
    
    
    system("PAUSE");
    return EXIT_SUCCESS;
}

why list is undeclare???help me plz

i think you should include <list> in the "impex.h".

i included but that doesnot work.......

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.