Nick Pickett
May 24th, 1999, 06:11 AM
I 'm trying to compile a program using the map template from the standard template library. However, it will not compile and keep receiving syntax errors. What am I doing wrong?
My code:
#ifndef EVALUATOR_H
#define EVALUATOR_H
#ifdef _MSC_VER
#pragma warning (disable: 4786)
#endif
#include <string>
#include <map>
using namespace Coyote;
namespace Coyote
{
struct VarName
{
char Text[255];
};
class Evaluator
{
private:
map<VarName, double, less<VarName>> Vars;
}
}
#endif
My code:
#ifndef EVALUATOR_H
#define EVALUATOR_H
#ifdef _MSC_VER
#pragma warning (disable: 4786)
#endif
#include <string>
#include <map>
using namespace Coyote;
namespace Coyote
{
struct VarName
{
char Text[255];
};
class Evaluator
{
private:
map<VarName, double, less<VarName>> Vars;
}
}
#endif