0

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

Edited by Narue: Added code tags

2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by Mona Ali
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.