Witam
Mam program w C++ który dekoduje plik za pomocą szyfru cezara tylko nie za bardzo go rozumie. Potrzebuje krótkie opisanie jak poszczególne funkcje w nim działają.
Program jest sprawny w 100% . Potrzebne tylko jego opisanie jak działa.
#include "stdafx.h"
#include
#include
#include
using namespace std;
char * memblock;
int main()
{
struct stat roz;
ifstream enfile("C:\\Documents and Settings\\kocurek\\Pulpit\\BKw1.zpw",ios::binary);
ofstream defile("C:\\Documents and Settings\\kocurek\\Pulpit\\wyk1.pdf",ios::binary);
stat("C:\\Documents and Settings\\kocurek\\Pulpit\\BKw1.zpw", &roz);
memblock=new char[roz.st_size];
enfile.read(memblock,roz.st_size);
for(int i=0; i
{
memblock[i]-=15;
defile<
}
return 0;
}
