Example: Here are two views of a first input file input0.csv:
First nm, Last nm, Gender,Cwid,Cred hrs, Qual pts,Gpa
John, Roe,M,44444444,40,150,3.75 Jane, Roe,F,66666666,100,260,2.6 John, Doe,M,22222222,50,140,2.8 Jane,Doe,F,88888888,80,280,3.5 Penny, Lowe,F,55555555,40,140,3.5 Lenny,Lowe,M,11111111,100,280,2.8 Denny, Lowe,M,99999999,80,260,3.25 Benny,Lowe,M,77777777,120,90,0.75 Jenny, Lowe,F,33333333,50,90,1.8 Zoe,Coe,F,0,50,130,2.6
Example: Here are two views of a second input file input0-7.csv:
Gender,ascend,string
Gpa,descend,float
Last nm,ascend,string
Example: Next suppose we run the following commands:
g++ -Wall-std=c++11 p2.cpp -o p2
./p2 input0.csv input0-7.csv output0-7.csv
Here are two views of the expected output file outputo-7.csv:
First nm, Last nm,Gender,Cwid,Cred hrs, Qual pts,Gpa
Jane,Doe,F,88888888,80,280,3.5 Penny, Lowe,F,55555555,40,140,3.5 Zoe,Coe,F,0,50,130,2.6 Jane, Roe,F,66666666,100,260,2.6 Jenny,Lowe,F,33333333,50,90,1.8 John, Roe,M,44444444,40,150,3.75 Denny,Lowe,M,99999999,80,260,3.25 John Doe,M,22222222,50,140,2.8 Lenny,Lowe,M,11111111,100,280,2.8 Benny, Lowe,M,77777777,120,90,0.75