The program is executed by executing the output file (.exe in Windows) and passing two command-line arguments, namely the CSV filename and column number.
The files are organized (in my case) as shown in the following screenshot:
Run the program using the following command:
./CSV.exe books.csv 1
It shows the following output: