[c++] Visual c++ i STL

0

Witam
Mam problem ze stworzeniem stosu w Visual c++ 2008.
Mój kod :

#pragma once

#include "functional"
#include "limits"
#include "algorithm"
#include "vector"
#include "stack"
#include "string"


class droga
{
private: 
   double **A; //moja tab
   double * D; //tablica wartośći przejścia
   int n;
   stack <int ,vector<int>> Stos; //Stos na wierzchołki <int,vector<int>>

public:
	droga(void);
	~droga(void);
};

otrzymuje następujący error :

1>f:\programowanie_obiektowe\programy\projekt_semestralny_siec\projekt_semestralny_siec\droga.h(17) : error C2143: syntax error : missing ';' before '<'
1>f:\programowanie_obiektowe\programy\projekt_semestralny_siec\projekt_semestralny_siec\droga.h(17) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>f:\programowanie_obiektowe\programy\projekt_semestralny_siec\projekt_semestralny_siec\droga.h(17) : error C2238: unexpected token(s) preceding ';'

Czy ktoś z was spotkał się z takim problemem?

0
#ifndef _DROGA_HPP
#define _DROGA_HPP

#include <functional>
#include <limits>
#include <algorithm>
#include <vector>
#include <stack>
#include <string>

class Droga
{
private:
   double **A; //moja tab
   double * D; //tablica wartośći przejścia
   int n;
   std::stack <int , std::vector<int> > Stos; //Stos na wierzchołki <int,vector<int>>
public:
        Droga(void);
        ~Droga(void);
};

#endif // _DROGA_HPP
0

dzięki zauważyłem moją wtopę [wstyd]

1 użytkowników online, w tym zalogowanych: 0, gości: 1