Hi! This WSQ was difficult an required a lot of research and failures. It consisted on opening a file, substracting some information and report it to the user. Opening the file was simple, with the use of a ifstream similar to the quiz. After turning it to a string I had issues when I attempted to turn the values in the strings to floats, the first solution I found was: http://www.cplusplus.com/reference/string/stof/. But when it did not compile, I did some research on internet and found a forum in which they mentioned that it wasn’t included in the compiler I used but there was another solution. They included this link: http://www.cplusplus.com/articles/D9j2Nwbp/#s2n, which turned to be very useful and allowed me to finish the WSQ.

Here’s the code: https://github.com/CarlosGallegosT/Codes007/blob/master/Cars.cpp

Thanks!

               

CC BY 4.0 Cars #WSQ16 by Carlos Gallegos is licensed under a Creative Commons Attribution 4.0 International License.