-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquadruplet.h
More file actions
42 lines (29 loc) · 781 Bytes
/
Copy pathquadruplet.h
File metadata and controls
42 lines (29 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef quadruplet_H
#define quadruplet_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
typedef struct qNoeud
{
char operateur[30];
char operande1[255];
char operande2[255];
char resultat[255];
int adresse;
struct qNoeud *next;
} qNoeud;
typedef struct qTable
{
struct qNoeud *tete;
int nb;
} qTable;
qTable* initialiserTQ();
void afficherTQ(qTable *TQ);
void supprimer_TQ(qTable *TQ);
void inserer_TQ(qTable *TQ, qNoeud *Q);
qNoeud* rechercherTQ(qTable *TQ, int address);
qNoeud* creer_Q(char operateur[], char* operande1, char* operande2, char* resultat, int adresse);
void afficherQ(qNoeud* Q);
void afficherTQDansFichier(qTable *TQ, const char *nomFichier);
void afficherQDansFichier(qNoeud* Q, FILE *fichier) ;
#endif