final
This commit is contained in:
+62
-78
@@ -1,3 +1,4 @@
|
||||
|
||||
/*fonction qui permet l'ouverture des fichiers en fonction d un chiffre entre 0 et 9 qui correspond a une heure , dizaine d heure, minutes, dizaines minutes ...*/
|
||||
FILE* ouverture(int temps) {//----ouverture
|
||||
FILE* fichier=NULL;
|
||||
@@ -98,22 +99,7 @@ int cpt = 0;
|
||||
|
||||
}//---------------------------------------------if
|
||||
}while(c != EOF);//------------------------------------------------------do/while
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
|
||||
for (i = 0; i < 5; i++) {//------------------------------------------------------for
|
||||
for(j = 0; j < 3; j++){ //------------for
|
||||
|
||||
if (tableau2[i*24+j]=='0'){
|
||||
printf(" ");
|
||||
}
|
||||
else {
|
||||
printf("%c",987);
|
||||
}
|
||||
}//------------------------------------------------------------------------------for
|
||||
printf("\n");
|
||||
|
||||
}//------------------------------------------------------------------for
|
||||
}//--------------------------------------------------------------------------------------------------------------------------------------------------------------main
|
||||
|
||||
|
||||
@@ -141,22 +127,7 @@ int cpt = 0;
|
||||
|
||||
}//---------------------------------------------if
|
||||
}while(c != EOF);//------------------------------------------------------do/while
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
|
||||
for (i = 0; i < 5; i++) {//------------------------------------------------------for
|
||||
for(j = 4; j < 7; j++){ //------------for
|
||||
|
||||
if (tableau2[i*24+j]=='0'){
|
||||
printf(" ");
|
||||
}
|
||||
else {
|
||||
printf("%c",987);
|
||||
}
|
||||
}//------------------------------------------------------------------------------for
|
||||
printf("\n");
|
||||
|
||||
}//------------------------------------------------------------------for
|
||||
}//--------------------------------------------------------------------------------------------------------------------------------------------------------------main
|
||||
|
||||
|
||||
@@ -185,22 +156,7 @@ int cpt = 0;
|
||||
|
||||
}//---------------------------------------------if
|
||||
}while(c != EOF);//------------------------------------------------------do/while
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
|
||||
for (i = 0; i < 5; i++) {//------------------------------------------------------for
|
||||
for(j = 10; j < 13; j++){ //------------for
|
||||
|
||||
if (tableau2[i*24+j]=='0'){
|
||||
printf(" ");
|
||||
}
|
||||
else {
|
||||
printf("%c",987);
|
||||
}
|
||||
}//------------------------------------------------------------------------------for
|
||||
printf("\n");
|
||||
|
||||
}//------------------------------------------------------------------for
|
||||
}//--------------------------------------------------------------------------------------------------------------------------------------------------------------main
|
||||
|
||||
|
||||
@@ -228,22 +184,7 @@ int cpt = 0;
|
||||
|
||||
}//---------------------------------------------if
|
||||
}while(c != EOF);//------------------------------------------------------do/while
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
|
||||
for (i = 0; i < 5; i++) {//------------------------------------------------------for
|
||||
for(j = 13; j < 16; j++){ //------------for
|
||||
|
||||
if (tableau2[i*24+j]=='0'){
|
||||
printf(" ");
|
||||
}
|
||||
else {
|
||||
printf("%c",987);
|
||||
}
|
||||
}//------------------------------------------------------------------------------for
|
||||
printf("\n");
|
||||
|
||||
}//------------------------------------------------------------------for
|
||||
}//--------------------------------------------------------------------------------------------------------------------------------------------------------------main
|
||||
|
||||
|
||||
@@ -276,22 +217,7 @@ int cpt = 0;
|
||||
|
||||
}//---------------------------------------------if
|
||||
}while(c != EOF);//------------------------------------------------------do/while
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
|
||||
for (i = 0; i < 5; i++) {//------------------------------------------------------for
|
||||
for(j = 19; j < 22; j++){ //------------for
|
||||
|
||||
if (tableau2[i*24+j]=='0'){
|
||||
printf(" ");
|
||||
}
|
||||
else {
|
||||
printf("%c",987);
|
||||
}
|
||||
}//------------------------------------------------------------------------------for
|
||||
printf("\n");
|
||||
|
||||
}//------------------------------------------------------------------for
|
||||
}//--------------------------------------------------------------------------------------------------------------------------------------------------------------main
|
||||
|
||||
|
||||
@@ -325,13 +251,20 @@ int cpt = 0;
|
||||
|
||||
}//---------------------------------------------if
|
||||
}while(c != EOF);//------------------------------------------------------do/while
|
||||
|
||||
}//-------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
{
|
||||
int i = 0;
|
||||
int j = 0;
|
||||
|
||||
for (i = 0; i < 5; i++) {//------------------------------------------------------for
|
||||
for(j = 22; j < 26; j++){ //------------for
|
||||
for(j = 0; j < 23; j++){ //------------for
|
||||
|
||||
if (tableau2[i*24+j]=='0'){
|
||||
if (tableau2[i*24+j]=='0')
|
||||
{
|
||||
printf(" ");
|
||||
}
|
||||
else {
|
||||
@@ -341,4 +274,55 @@ int cpt = 0;
|
||||
printf("\n");
|
||||
|
||||
}//------------------------------------------------------------------for
|
||||
}//-------------------------------------------------------------------------------
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
void mettredstbl(void);
|
||||
{
|
||||
int ecrire;
|
||||
FILE* tbl245=NULL;
|
||||
tbl245=fopen("tableau245",w);
|
||||
for (ecrire=0;ecrire=119; ecire++)
|
||||
{
|
||||
fprintf(tableau245,tableau2[ecrire]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void lirefichier(void);
|
||||
{
|
||||
|
||||
int r;
|
||||
FILE* tbl245=NULL;
|
||||
tbl245=fopen("tableau245",r);
|
||||
r=fgetc(tbl245);
|
||||
switch (r)
|
||||
case 0:
|
||||
{
|
||||
printf(" ");
|
||||
|
||||
}
|
||||
case 1:
|
||||
{
|
||||
printf("%c",987);
|
||||
|
||||
}
|
||||
case '\n':
|
||||
{
|
||||
int bordure;
|
||||
for (bordure=0; bordure=55; bordure++)
|
||||
{
|
||||
printf(" ");
|
||||
}
|
||||
|
||||
}
|
||||
case '\0':
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user