Code files and assistance
|
In the previous blog post I promised that I would update on what I did last week with the coding part, so I will get into that a bit further now. Note that I will write and do write about the last week’s work, and not the current one. Anyway as I’ve said I tried to code some sort of highscore list, but before doing that you’ll need to implement a way to write from file and read to file. You should do this before making a highscore list otherwise it won’t work because you’ll need to store/save the score somewhere and in this case it’s in a text file. However, this was really hard for me to do so I checked some tutorials and read some information online, but it didn’t help. However I managed to do something, but I couldn’t check if it would work as there were errors in the code that I couldn’t fix. I could probably list more pictures that showed more code, but what is the point if you can’t show the purpose of it due to errors in it? Thus, I will show code that actually did work and the function of it down below (note that it was written with no header/source files as everything was written in the “main”): And yes I did a mistake naming it “File.cpp”, in reality it should be the “main.cpp” and vice versa but please bear with it. What can be seen there is that I write something in a text file, and when compiling and running the program, it shows the exact thing as in the text file.
I then asked my programmers in my group for directions and help on how to continue but they didn’t understand my code at all (not the code in the picture, but when I tried to code a highscore list) because it was confusing, and I didn’t ask more, so basically I was stuck and paralyzed again. However during this time the communication in the group was awkward and bad and one reason to this was all the stress we had to go through/gone through in this stage of the project. Everyone had their own, busy part to work with. I was… stuck… again. So my last resort was the student assistance on the school but it showed that the student assistance could only meet me on Monday, which we did, while the teacher had a day off on Friday when I asked for help the day before. So it was really frustrating and a horrible week unfortunately…
Despite the fact that I did code more than I used to, I couldn’t check if it was any good as I couldn’t fix the errors in the code since it was hard. And even if I would, maybe the code wasn’t good enough to be implemented in the main code that my lead programmer has the responsibility for. And help was somewhat rare last week, so yeah… Nevertheless things have gotten better this week and the communication flows better so next time I’ll write more about that. But the code remains somewhat the same but I have gotten more help and progressed a bit. |
