knapsack cpp file with greedy algorithm

output files
results.txt for knapsack