Bonjour,
J'aimerais créer une classe stockant des tableaux et des méthodes de recherche dans ceux-ci.
J'aimerais appelé la méthode is_present dans n'importe quelle classe par Command_asm::is_present("tableau", "chaine");
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 class Command_asm{ public: // Tableaux static string list_command[TAILLE_BASE]; static string list_command_jump[TAILLE_JMP]; static string list_command_X87[TAILLE_X87]; static string list_command_SSE[TAILLE_SSE]; friend bool is_present(string type, string word); };
Voici l'erreur à la compilation :
core/src/Read_file.cpp:184: erreur: «is_present" is not a member of «Command_asm"
Une idée ?
Merci d'avance.
Partager