Slide 14.5: Linking to C/C++
Slide 14.7: Linking to C/C++ (cont.)
Home

Linking to C/C++ (Cont.)


Code Example—Encrypting a File
The following program reads a file, encrypts it, and writes the output to another file. It includes three files: To run this program from a command prompt, pass the names of the input and output files, for example,
   Encrypt  infile.txt outfile.txt
Some of the following C++ commands are used in the program: