fonction initGrid(grid) mais ça marche soso

This commit is contained in:
Sunny
2025-11-28 08:54:55 -05:00
parent f7ae8f438c
commit 8fa7df8845
2 changed files with 9 additions and 0 deletions

View File

@@ -86,6 +86,14 @@ void afficherImageMenu(std::fstream& monFlux) {
} }
//G<>n<EFBFBD>ral (plusieurs options) //G<>n<EFBFBD>ral (plusieurs options)
void initGrid(string grid[][LARGTIC]) {
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
grid[i][j] = "";
}
}
}
void afficherImageTableau(std::string grid[][LARGTIC], std::string style) { void afficherImageTableau(std::string grid[][LARGTIC], std::string style) {
SetConsoleOutputCP(CP_UTF8); SetConsoleOutputCP(CP_UTF8);
string emoteUp, string emoteUp,

View File

@@ -17,6 +17,7 @@ void ouvrirFichier(std::fstream& monFlux, std::string nomFichier);
void fermerFichier(std::fstream& monFlux); void fermerFichier(std::fstream& monFlux);
//Menu //Menu
void initGrid(std::string grid[][LARGTIC]);
void afficherMenu(char& choix); void afficherMenu(char& choix);
void afficherImageMenu(std::fstream& monFlux); void afficherImageMenu(std::fstream& monFlux);