I'm a long time Java guy trying to move to C++ but I keep getting this error that I can't seem to figure out. It must be something simple I'm missing but I can't find it by looking at examples.
I get a "Too many types in declaration" on my class declaration line:
I found this but his problem seemed to be the semicolon which I've added.
I'm using Borland 5.5
I get a "Too many types in declaration" on my class declaration line:
Code:
#include<string> #include<vector> #include"MapCoordinates.h" class TopographicalMap //Error: Too many types in declaration { private: double getVarience(MapCoordinates*); std::vector<int> splitString(std::string*); std::vector< std::vector<int> > mapData; int mapWidth; int mapHeight; public: TopographicalMap(std::string); MapCoordinates getBestLocation(int, int); };
I'm using Borland 5.5
Comment