1 |
francois |
1158 |
//####//------------------------------------------------------------ |
2 |
|
|
//####//------------------------------------------------------------ |
3 |
|
|
//####// MAGiC |
4 |
|
|
//####// Jean Christophe Cuilliere et Vincent FRANCOIS |
5 |
|
|
//####// Departement de Genie Mecanique - UQTR |
6 |
|
|
//####//------------------------------------------------------------ |
7 |
|
|
//####// MAGIC est un projet de recherche de l equipe ERICCA |
8 |
|
|
//####// du departement de genie mecanique de l Universite du Quebec a Trois Rivieres |
9 |
|
|
//####// http://www.uqtr.ca/ericca |
10 |
|
|
//####// http://www.uqtr.ca/ |
11 |
|
|
//####//------------------------------------------------------------ |
12 |
|
|
//####//------------------------------------------------------------ |
13 |
|
|
//####// |
14 |
|
|
//####// sl_solution.h |
15 |
|
|
//####// |
16 |
|
|
//####//------------------------------------------------------------ |
17 |
|
|
//####//------------------------------------------------------------ |
18 |
|
|
//####// COPYRIGHT 2000-2024 |
19 |
|
|
//####// jeu 13 jun 2024 11:58:57 EDT |
20 |
|
|
//####//------------------------------------------------------------ |
21 |
|
|
//####//------------------------------------------------------------ |
22 |
|
5 |
|
23 |
|
|
#ifndef sl_solutionH
|
24 |
|
|
#define sl_solutionH
|
25 |
|
|
|
26 |
|
|
#include <stdio.h>
|
27 |
|
|
#include "sl_solution.h"
|
28 |
|
|
#include <ostream.h>
|
29 |
|
|
|
30 |
|
|
|
31 |
|
|
|
32 |
|
|
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|
36 |
francois |
1158 |
std::ostream& operator << (std::ostream& o,class SL_SOLUTION& sol);
|
37 |
|
5 |
|
38 |
francois |
1158 |
|
39 |
|
|
class SL_SOLUTION
|
40 |
|
5 |
{
|
41 |
|
|
public:
|
42 |
|
|
SL_SOLUTION(int nb,char* chemin,int code);
|
43 |
|
|
virtual ~SL_SOLUTION();
|
44 |
|
|
|
45 |
|
|
double lire(int i,int j);
|
46 |
|
|
void ecrire(int i,int j,double val);
|
47 |
|
|
int get_nb_champ(void);
|
48 |
|
|
void enregistrer(std::ostream& o);
|
49 |
|
|
|
50 |
|
|
void efface(void);
|
51 |
|
|
|
52 |
|
|
friend std::ostream& operator << (std::ostream& o,SL_SOLUTION& sol);
|
53 |
|
|
|
54 |
|
|
private:
|
55 |
|
|
char *nom_fichier;
|
56 |
|
|
int nb_champs;
|
57 |
|
|
FILE* in;
|
58 |
|
|
};
|
59 |
|
|
|
60 |
|
|
|
61 |
|
|
|
62 |
|
|
#endif
|
63 |
|
|
|
64 |
|
|
|