need to translate from Delphi to C++

M

Mariusz Sakowski

Can someone translate this code to a C++ langauge?

repeat
plik.Read(bufor, 1);
for p := 1 to iloscLiczb do
begin
bufor := bufor xor Klucze[p];
end;
plikDocelowy.Write(bufor, 1);
pb.Position := pb.Position + 1;
until plik.Size = plik.Position;

I'm a beginner with C++ and I'm a bit confused with pointers, and
operators. Thanks in advance for any help
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top