C++ Write Array To Csv File