include ",,,,,.h"
Publicado por forzabiaggi (36 intervenciones) el 28/06/2001 18:01:36
Hola!
#include <hash_map.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct eqstr
{
bool operator()(const char* s1, const char* s2) const
{
return strcmp(s1, s2) == 0;
}
};
hash_map<const char*, int, hash<const char*>, eqstr> months;
months["may"] =31;
months["june"] =5;
............................................................
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Quiero tener la tabla hash en un .h, pero no me deja hacer
months["may"] =31; en el .h.
Gracias!
#include <hash_map.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
struct eqstr
{
bool operator()(const char* s1, const char* s2) const
{
return strcmp(s1, s2) == 0;
}
};
hash_map<const char*, int, hash<const char*>, eqstr> months;
months["may"] =31;
months["june"] =5;
............................................................
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Quiero tener la tabla hash en un .h, pero no me deja hacer
months["may"] =31; en el .h.
Gracias!
Valora esta pregunta


0