swap.cc source file swap.in input file swap.out output file go simple bash script to compile and run
Compile it with "g++ -O -o swap swap.cc"
Run it with "./swap < swap.in > swap.out"