Cod sursa(job #1278210)
Utilizator | Data | 28 noiembrie 2014 16:55:47 | |
---|---|---|---|
Problema | Oite | Scor | 0 |
Compilator | cpp | Status | done |
Runda | Arhiva de probleme | Marime | 0.33 kb |
#include <cstdio>
using namespace std;
int main()
{
FILE *fin, *fout;
fin= fopen("cezar.in","r");
fout= fopen("cezar.out","w");
char c;
c= fgetc(fin);
while( c>96 && c<123 ) {
if( c=='z' ) fputc( 'a', fout );
else fputc(c+1, fout );
c=fgetc(fin);
}
return 0;
}