[C] affichage du contenu d'un tablo a l'ecran prob

affichage du contenu d'un tablo a l'ecran prob [C] - C++ - Programmation

Marsh Posté le 02-04-2003 à 01:32:32    

voila en fait j'ai une matrice 100*100 dont la premiere ligne se presente comme ca
 

"Space","!","Quote","#","$","%","&","'","("," )","*","+",",","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\","]","^","_","`","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","{","|","}","~","?","Back Sp","Tab","Line Feed","Return"


 
il faudrais que je lise ce qui a entre chaque guillemet et que je le foute dans un tableau. seulement j'ai un prob avec les virgules, je peux faire un truc pour les virer mais y a un des caractere qui est une virgule, comment je fait pour pas qu'il la nie?
 
j'ai deja ca pour la lecture mais la je blok un peu
 

Code :
  1. struct digram {
  2. char touche1[10];
  3. char touche2[10];
  4. int frequence;
  5. int temps;
  6. };
  7. void lecture(struct digram tab[],char nom_fich[10])
  8. {
  9. FILE *data;
  10. char c,dig1;
  11. int i=0,j=0;
  12.    
  13. data = fopen(nom_fich,"r" );  //ouverture du fichier
  14. c=getc(data);
  15. while ((c!=EOL)
  16. {
  17.   while(((c=getc(data))!='"')&&(c!=','))
  18.    digram[i].touche1[j]=c;
  19.    j++;
  20. }


Message édité par eraser17 le 02-04-2003 à 16:44:00
Reply

Marsh Posté le 02-04-2003 à 01:32:32   

Reply

Marsh Posté le 02-04-2003 à 01:50:47    

Code :
  1. while ((c!=EOL)
  2. {
  3. c=getc(data);
  4. if ((c!='"')&&(c!=','))
  5. {
  6.  digram[i].touche1[j]=c;
  7.  j++;
  8. }
  9. if (c!=',')
  10. {
  11.  i++;
  12.  j=0;
  13. }
  14. }


 
j'ai pas testé, surement buggé  :)

Reply

Marsh Posté le 02-04-2003 à 01:57:37    

nico168 a écrit :

Code :
  1. while ((c!=EOL)
  2. {
  3. c=getc(data);
  4. if ((c!='"')&&(c!=','))
  5. {
  6.  digram[i].touche1[j]=c;
  7.  j++;
  8. }
  9. if (c!=',')
  10. {
  11.  i++;
  12.  j=0;
  13. }
  14. }


 
j'ai pas testé, surement buggé  :)  


 
yes ok je vois
 
merci  :)

Reply

Marsh Posté le 02-04-2003 à 03:46:45    

et ici
 
 

Code :
  1. while (c!=EOL)
  2.   {
  3.    for (l=0;l==j;l++)
  4.    {
  5.  digram[i].touche2[l]=t2[l];
  6.    }
  7.  digram[i].frequence=getc(data);
  8.  c=getc(data);
  9.  i++;


 
pourkoi il me met ca comme erreur?
 
C:\Documents and Settings\Jean-François\Mes documents\fpms\p2c\c++\compte digr\prog1.cpp(78) : error C2143: syntax error : missing ';' before '['
C:\Documents and Settings\Jean-François\Mes documents\fpms\p2c\c++\compte digr\prog1.cpp(78) : error C2143: syntax error : missing ';' before '['
C:\Documents and Settings\Jean-François\Mes documents\fpms\p2c\c++\compte digr\prog1.cpp(81) : error C2143: syntax error : missing ';' before '['

Reply

Marsh Posté le 02-04-2003 à 03:50:44    

ok j'ai trouvé c bon

Reply

Marsh Posté le 02-04-2003 à 05:35:03    

c'est quoi EOL?  :heink:

Reply

Marsh Posté le 02-04-2003 à 12:55:38    

++Taz a écrit :

c'est quoi EOL?  :heink:  


 
end of line?

Reply

Marsh Posté le 02-04-2003 à 12:58:51    

de toute facon ca marche pas ca plante et je sais pas pourkoi
 
au cas ou qqn voudrais jeter un coups d'oeil en vitesse j'ai peut etre fait une grosse erreur de debutant que je suis
 

Code :
  1. #include <stdio.h>
  2. #include <string.h>
  3. #define Nbr_digram 6000
  4. #define EOL '\n'
  5. //on definit ici la structure digramme avec comme caracteristiques pour chaqun  
  6. //les 2 touches qui le composent, le nombre de fois qu'il a été frappé et le temps moyen.
  7. struct digram {
  8. char touche1[10];
  9. char touche2[10];
  10. int frequence;
  11. float temps;
  12. };
  13. void lecture(struct digram tab[],char nom_fich[10])
  14. {
  15. FILE *data;
  16. char c,t2[10];
  17. int i=0,j=0,k=0,l,m=0;
  18.    
  19. data = fopen(nom_fich,"r" );  //ouverture du fichier
  20. c=getc(data);
  21. while (c!=EOL)
  22. {j=0;
  23.  if ((c!='"')&&(c!=','))
  24.  {
  25.   do
  26.   {
  27.    for (m=i;m==99999;m+=100)
  28.    {
  29.    tab[m].touche1[j]=c;
  30.    }
  31.    j++;
  32.    c=getc(data);
  33.   }while((c!='"')&&(c!=',')&&(c!=EOL));
  34.    for (m=i;m==99999;m+=100)
  35.    {
  36.    tab[m].touche1[j]='\0';
  37.    }
  38.   i++;
  39.  }
  40.  else
  41.   c=getc(data);
  42. }
  43. ;
  44. i=0;
  45.     c=getc(data);
  46. while (c!=EOF)
  47. {j=0;
  48.   while (c!=',')
  49. {
  50.  if ((c!='"'))
  51.  {
  52.   do
  53.   {
  54.    t2[j]=c;
  55.    j++;
  56.    c=getc(data);
  57.   }while((c!='"')&&(c!=',')&&(c!=EOL));
  58.   t2[j]='\0';
  59.  }
  60.  else
  61.   c=getc(data);
  62. }
  63.   while (c!=EOL)
  64.   {
  65.    for (l=0;l==j;l++)
  66.    {
  67.  tab[i].touche2[l]=t2[l];
  68.    }
  69.  fscanf(data,"%d",tab[i].frequence);
  70.  c=getc(data);
  71.  i++;
  72. }
  73. }
  74. }
  75. //le corps du programme
  76. void main (void)
  77. {
  78. struct digram digramme[10000];
  79. FILE *data;     //creation du fichier pour pouvoir l'ouvrir
  80. char nom_fich[10];
  81.    
  82. printf ("Nom du fichier a lire:" );
  83. gets(nom_fich);
  84. if((data=fopen(nom_fich,"r" ))==NULL)
  85.  printf("\nErreur d'ouverture" );
  86. else
  87. {
  88.  lecture(digramme,nom_fich);
  89. }
  90. }

Reply

Marsh Posté le 02-04-2003 à 14:03:53    

t'es sur de tes boucles for?
 
        for (m=i;m==99999;m+=100)  
 
cette condition me semble un peu bizarre.

Reply

Marsh Posté le 02-04-2003 à 14:24:50    

polo021 a écrit :

t'es sur de tes boucles for?
 
        for (m=i;m==99999;m+=100)  
 
cette condition me semble un peu bizarre.


 
en fait cette boucle affecte le nom d'une touche dans un emplacement i, puis i+100, i+200
 
donc pour la premiere touche elle va etre affectée au emplacement 1,101,201... et la 99 eme va etre mise a l'emplacement 99 jusqu'a 99999
 
j'ai deja corrigé pas mal de bug mais maintenant le prob c'est que quand j'affiche a l'ecran le contenu du nom de ces touche justement ca me met ca  
 


 
touche1            ,touche 2         , frequence
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,1
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0
╠╠╠╠╠╠╠╠╠╠   ,╠╠╠╠╠╠╠╠╠╠   ,0


 
la frequence c bon mais le nom des touches :/
 
 
et voici le bout de programme corrigé
 

Code :
  1. void lecture(struct digram tab[],char nom_fich[10])
  2. {
  3. FILE *data;
  4. char c,t2[10];
  5. int i=0,j=0,k=0,l,m=0,freq=0;
  6.    
  7. printf("\n ouverture du fichier\n" );
  8. data = fopen(nom_fich,"r" );  //ouverture du fichier
  9. c=getc(data);
  10. while (c!=EOL)
  11. {j=0;
  12.  if ((c!='"')&&(c!=','))
  13.  {
  14.   do
  15.   {printf("\ncaractere en cours de copie :%c\n",c);
  16.    for (m=i;m==99999;m+=100)
  17.    {
  18.    tab[m].touche1[j]=c;
  19.    }
  20.    j++;
  21.    c=getc(data);
  22.   }while((c!='"')&&(c!=',')&&(c!=EOL));
  23.    for (m=i;m==99999;m+=100)
  24.    {
  25.    tab[m].touche1[j]='\0';
  26.    }
  27.   i++;
  28.  }
  29.  else
  30.   c=getc(data);
  31. }
  32. i=0;
  33.     c=getc(data);
  34. while ((c!=EOF)&&(freq!=-1))
  35. {j=0;
  36.   while (c!=',')
  37. {
  38.  if ((c!='"'))
  39.  {
  40.   do
  41.   {printf("\ncaractere en cours de copie pour touche 2 :%c\n",c);
  42.    t2[j]=c;
  43.    j++;
  44.    c=getc(data);
  45.   }while((c!='"')&&(c!=',')&&(c!=EOL));
  46.   t2[j]='\0';
  47.  }
  48.  else
  49.   c=getc(data);
  50. }
  51.   while ((c!=EOL)&&(freq!=-1))
  52.   {
  53.    for (l=0;l==j;l++)
  54.    {
  55.  tab[i].touche2[l]=t2[l];
  56.    }
  57.  freq=fscanf(data,"%d",&tab[i].frequence);
  58.  //printf("\nfrequence en cours de copie :%i\n",freq);
  59.  c=getc(data);
  60.  i++;
  61. }
  62. }
  63.     i=0;
  64. j=0;
  65. printf ("\ntouche 1, touche 2, frequence:\n" );
  66. for (i=0;i<100;i++)
  67. {
  68.  for (j=0;j<10;j++)
  69.  printf("%c",tab[i].touche1[j]);
  70.  printf("   ," );
  71.  for (j=0;j<10;j++)
  72.  printf("%c",tab[i].touche2[j]);
  73.  printf("   ," );
  74.  printf ("%d\n",tab[i].frequence);
  75. }
  76. }

Reply

Marsh Posté le 02-04-2003 à 14:24:50   

Reply

Marsh Posté le 02-04-2003 à 14:26:12    

comment que ca met mon IE sur le dos, ton post [:wam]

Reply

Marsh Posté le 02-04-2003 à 14:30:08    

chrisbk a écrit :

comment que ca met mon IE sur le dos, ton post [:wam]


 
desolé  :whistle:

Reply

Marsh Posté le 02-04-2003 à 16:44:27    

juste pour l'affichage du texte vous voyez pas ca pourrais etre koi la prob? j'ai aps oublié un truc qqpart?

Reply

Marsh Posté le 02-04-2003 à 17:20:28    

eraser17 a écrit :


 
end of line?

genre ça existe pas

Reply

Marsh Posté le 02-04-2003 à 17:22:57    

++Taz a écrit :

genre ça existe pas


 
meme avec ca au debut

Code :
  1. #define EOL '\n'

?

Reply

Marsh Posté le 02-04-2003 à 18:31:59    

là ça va.

Reply

Marsh Posté le 02-04-2003 à 18:46:13    

en fait cette boucle affecte le nom d'une touche dans un emplacement i, puis i+100, i+200  
 
Ouais , sauf qu'il y passe jamais ou presque dans ta boucle.

Reply

Marsh Posté le 02-04-2003 à 18:53:31    

Clie a écrit :

en fait cette boucle affecte le nom d'une touche dans un emplacement i, puis i+100, i+200  
 
Ouais , sauf qu'il y passe jamais ou presque dans ta boucle.


 
au contraire j'ai l'impression qu'il y passe trop, ca foire.

Reply

Marsh Posté le 02-04-2003 à 20:43:20    

eraser17 a écrit :


 
au contraire j'ai l'impression qu'il y passe trop, ca foire.


 
pour ma part, ce qui m'etonne c'est que  
 for (m=i;m==99999;m+=100)  
signifie : pour m = 0 (i=0 plus haut) tant que m égal 99999 tu fait  m = m +100 mais, par pas de 100 et en partant de 0 tu n'arriveras jamais à 99999 mais à 99900 ou 100000
c'est un peu bizarre ta condition de boucle. tu peux expliquer comment tu vois ca?    [:sharpknife]  

Reply

Marsh Posté le 02-04-2003 à 21:04:15    

polo021 a écrit :


 
pour ma part, ce qui m'etonne c'est que  
 for (m=i;m==99999;m+=100)  
signifie : pour m = 0 (i=0 plus haut) tant que m égal 99999 tu fait  m = m +100 mais, par pas de 100 et en partant de 0 tu n'arriveras jamais à 99999 mais à 99900 ou 100000
c'est un peu bizarre ta condition de boucle. tu peux expliquer comment tu vois ca?    [:sharpknife]  
 


 
raté : si m vaut 0, alors il vaut pas trop 99999, donc ca risque de meme pas faire le m+=100...

Reply

Marsh Posté le 02-04-2003 à 21:08:51    

polo021 a écrit :


 
pour ma part, ce qui m'etonne c'est que  
 for (m=i;m==99999;m+=100)  
signifie : pour m = 0 (i=0 plus haut) tant que m égal 99999 tu fait  m = m +100 mais, par pas de 100 et en partant de 0 tu n'arriveras jamais à 99999 mais à 99900 ou 100000
c'est un peu bizarre ta condition de boucle. tu peux expliquer comment tu vois ca?    [:sharpknife]  
 


 
ouai j'ai changer mais y a tjr un truc foireux quelque part. :/
 

Code :
  1. while (c!=EOL)
  2. {j=0;
  3.  if ((c!='"')&&(c!=','))
  4.  {
  5.   do
  6.   {//printf("\ncaractere en cours de copie :%c\n",c);
  7.    for (m=i;m==(99000+i);m+=100)
  8.    {
  9.    tab[m].touche1[j]=c;
  10.    }
  11.    j++;
  12.    c=getc(data);
  13.   }while((c!='"')&&(c!=',')&&(c!=EOL));
  14.    for (m=i;m==99999;m+=100)
  15.    {
  16.    tab[m].touche1[j]='\0';
  17.    }
  18.   i++;
  19.  }
  20.  else
  21.   c=getc(data);
  22. }

Reply

Marsh Posté le 02-04-2003 à 21:12:30    

Konar a écrit :


 
raté : si m vaut 0, alors il vaut pas trop 99999, donc ca risque de meme pas faire le m+=100...


 
oui c'est encore pire

Reply

Marsh Posté le 02-04-2003 à 21:14:01    

si tu m'expliquais plutot ce que ta boucle for est censée faire, je pourrait peut etre un peu y voir plus clair et t'aider un peu mieux
 
EDIT : remplaces deja ton == par un != ou un <
 
EDIT 2 : dans ta deuxieme boucle for aussi je suppose


Message édité par polo021 le 02-04-2003 à 21:19:03
Reply

Marsh Posté le 02-04-2003 à 21:46:10    

polo021 a écrit :

si tu m'expliquais plutot ce que ta boucle for est censée faire, je pourrait peut etre un peu y voir plus clair et t'aider un peu mieux
 
EDIT : remplaces deja ton == par un != ou un <
 
EDIT 2 : dans ta deuxieme boucle for aussi je suppose


 
j'ai une matrice comme ca
 

"Space","!","Quote","#","$","%","&","'","("," )","*","+","virgule","-",".","/","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","@","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","[","\","]","^","_","`","a","b","c","d","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0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
"Back Sp",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,2,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0
"Tab",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
"Line Feed",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
"Return",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0


 
 
et je dois mettre les 100 caracteres different de la premiere dans le touche1 de cette structure
 

Code :
  1. struct digram {
  2. char touche1[10];
  3. char touche2[10];
  4. int frequence;
  5. float temps;
  6. };


 
en fait pour chaque valeur du tablo double entrée de dois avoir l'entrée horizontal dans touche1, l'entrée verticale dans touche 2 et la valeur de cette double entrée dans frequence.
 
la boucle est censée mettre chaque caractere dans touche1 100 fois. par exemple l'espace sera a la valeur 0 a la valeur 100, 200, etc jusqu'a 9900. la meme chose pour le ! mais lui a la position 1, 101,...,9901
 
et ensuite je les combine avec les valeurs verticale pour faire toute les combinaison et avoir un digram pour chaqune des 10000 valeur.

Reply

Marsh Posté le 02-04-2003 à 22:14:23    

Code :
  1. while ((c!=EOF)&&(freq!=-1))
  2. {
  3.   while (c!=',')
  4. {
  5.  if ((c!='"')&&(c!=EOL))
  6.  {j=0;
  7.   do
  8.   {printf("\ncaractere en cours de copie pour touche 2 :%c\n",c);
  9.    t2[j]=c;
  10.    for (b=a;b<=(a+9901);b+100)
  11.     tab[b].touche1[j]=c;
  12.    printf("\ncaractere copier pour touche 1 :%c\n",tab[b].touche1[j]);
  13.    j++;
  14.    c=getc(data);
  15.   }while((c!='"')&&(c!=',')&&(c!=EOL));
  16.   t2[j]='\0';
  17.   for (b=a;b<=(a+9901);b+100)
  18.     tab[b].touche1[j]='\0';
  19.   a++;


 
j'ai changer le code, maintenant ca blok precisement la
 

Code :
  1. for (b=a;b<=(a+9901);b+100)
  2. tab[b].touche1[j]=c;

Reply

Marsh Posté le 02-04-2003 à 22:17:17    

ca sort pas de la boucle après la premiere lettre en fait.
 
ok c reglé
 
suffisait de mettre for (b=a;b<=(a+9901);b+=100) au lieu de for (b=a;b<=(a+9901);b+100)  
 


Message édité par eraser17 le 02-04-2003 à 22:19:30
Reply

Marsh Posté le    

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed