When I wrote codes below into my visual C++, and begin to run, there is no error and the console have nothing.Does the line "ofstream sals("salaries.txt");" means you're opening a file already existed called "salaries.txt"?But firts I set up a WIN32 console applicaion-> sorce file I already give my file a new?Am I trying to open another file(salaries.txt) in my own sorce code?
I'm supposed to get the result
Name Salaies
--------------- -------
Hank Williams 28422.82
Buddy Holly 58422.82
Nicolas Tse 98422.82