Salut,
Bon j'ai une classe definie comme il faut, tout marche bien mais maintenant, je voudrais rajouter une methode qui renvoit un type que j'ai defini moi meme (une struct en fait). En a ce moment la, impossible de compiler comme il faut. Je voudrais bien un rapide coup de main si cela est possible.
Merci
ci-joint le code :
Code :
- class HashTable
- {
- protected:
- struct KeyNode {
- CString Key;
- CString Value[5];
- int KIndex; };
- KeyNode HTable[50];
- int HIndex;
- public:
- HashTable::HashTable();
- HashTable::~HashTable();
- void HashTable::Add(CString K, CString Val);
- void HashTable::Remove(CString K, CString Val);
- int HashTable::KeyPresent(CString K);
- void HashTable::InitHashTable();
- void HashTable::ListHTable();
- };
|
Et je veux faire une methode renvoyant HTable, donc un pointeur sur KeyNode.
Merci
---------------
mOOt the RobomixOR, c'est comme un robot-mixeur mais en OR // Modificateur de HUD pour CS:S