J essaie de faire un stack mais ca ne marche pas
La declaration est : Stack* pile = new Stack();
le push : pile->Push(strPile);
le pop : strPile = pile->Pop();
strPile est une structure declarée comme suit:
struct structPile
{
int retirx;
int retiry;
int ancx;
int ancy;
int nouvx;
int nouvy;
int savei;
int comp;
};
structPile strPile;
les erreurs sont :- c:\Documents and Settings\manu\Bureau\jeu\jeudames\Logique\Logique.cpp(157): error C2664: 'System::Collections::Stack::Push' : cannot convert parameter 1 from 'structPile' to 'System::Object __gc *'
- c:\Documents and Settings\manu\Bureau\jeu\jeudames\Logique\Logique.cpp(171): error C2679: binary '=' : no operator found which takes a right-hand operand of type 'System::Object __gc *' (or there is no acceptable conversion)
QQ un pour m'aider please??