45 lines
1.2 KiB
C++
45 lines
1.2 KiB
C++
/*====================================
|
|
AUTEUR : Jérémy Hébert & William Godin
|
|
PROJET : Taxon
|
|
NOM DU FICHIER : mesFonctions.h
|
|
DATE : 17 novembre 2025
|
|
BUT : Contient la déclaration (prototype) des fonctions utiliser pour Taxon
|
|
====================================*/
|
|
|
|
#pragma once
|
|
|
|
//Librairies
|
|
#include <iostream>
|
|
#include <conio.h>
|
|
#include <fstream>
|
|
#include <string>
|
|
#include <Windows.h>
|
|
|
|
using namespace std;
|
|
|
|
//Affichage du logo
|
|
void afficherMenu(string nomFichier);
|
|
void ouvrirFichier(fstream& monFlux, string nomFichier);
|
|
void afficherImage(fstream& monFlux);
|
|
void fermerFichier(fstream& monFlux);
|
|
void delai();
|
|
void curseur(bool interrupteur);
|
|
|
|
int nombreLigneFichier(fstream& monFlux);
|
|
|
|
// Mot
|
|
string choisirMot(string nomFichier);
|
|
string goToLine(fstream& monFlux, int numeroLigne);
|
|
|
|
bool effectuerTour();
|
|
bool dansListe(string motPlayer);
|
|
bool comparerMot(fstream& monFlux, string motPlayer, int numeroLigne);
|
|
int lettreDansMot(string motRandom, string motPlayer, int nbLettre, int i);
|
|
void afficherMotPlayer(string lettrePlayer, int positionLettre);
|
|
void printLettre(fstream& monFlux, int positionLettre);
|
|
|
|
/*====================================
|
|
2 - OPTIONS
|
|
====================================*/
|
|
void choixNbEssai();
|
|
void choixLongeurMot(); |