Skip to content

Instantly share code, notes, and snippets.

@matael
Created February 20, 2012 18:56
Show Gist options
  • Select an option

  • Save matael/1870714 to your computer and use it in GitHub Desktop.

Select an option

Save matael/1870714 to your computer and use it in GitHub Desktop.
help qgi
#define N // tu mets la taille qu'il te faut
char courant;
char lecture[N];
i = 0;
courant = getchar();
while (courant != EOF && i < N) {
lecture[i] = courant;
i++;
courant = getchar();
}
// traitement de lecture (une chaine quoi)
for (i=0; i<N; i++){lecture[i]='0';}
i=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment