Difference between revisions of "Talk:Esercizi a caso del Prof."

From Sistemi Operativi
Jump to navigation Jump to search
(esercizio codice sorgente)
 
(Blanked the page)
Line 1: Line 1:
<syntaxhighlight lang="c">
 
//questo e' un tentativo che funziona
 
//Stefano Bernagozzi
 
#include <stdio.h>
 
  
void main(void){
 
  char c[] = __FILE__;
 
  FILE *f;
 
  if (f=fopen(c, "r")){
 
    while ((c[0]=getc(f))!=EOF)
 
      printf("%c", c[0]);
 
    fclose(f);
 
  }
 
}
 
</syntaxhighlight>
 

Revision as of 15:10, 29 October 2013