Ken said to us since the beginning of the semester that the final project could be anything we wanted. And that was quite motivating since the project should be or must be something that we are interested in. My project was to programm a Tic-Tac-Toe game, it was not my first choice. My project changed because some stuff that happened, so my final project decision was this: a Tic-Tac-Toe game. It sounds easy but it is not, I had to work a lot and to type a lot of code.
***Here is what I learned:***
- Cases: Or also called switch statement I think. It works as a menu or that is what I understood. Actually I worked in a programm with cases that was an ATM. Cases work depending on the case literally, when a condition matches with a case that case will be working. The same way that in a menu depending on what you choose or on what the programm do. I am sure this specific ‘function’ will be useful for my future coding.
- Game(in the code): It is like a tag or a chekpoint to know wheen to start or stop doing something.
- The use of libraries:
#include <sstream> I learned that this it is a library that include streams and inside they contain strings and this can be useful for employing stream-style manipulation.
#include <ctype.h> I learned that it is a library that declares several functions that are useful for testing and mapping character.
-for(;;) : This is for running a program for infinite times. When it finishes, it starts again and again.
-Working alone: For a final project it was really hard because I had no one to get help from. I admit I did needed a teammate, but there were some problems with my old team. Now it doesn’t matter because I could finish my project. I had fun and I learned a lot when working with my project and during the whole course. Thanks a lot.
Links:
https://www.tutorialspoint.com/c_standard_library/ctype_h.htm
http://www.cplusplus.com/reference/sstream/stringstream/
http://www.cplusplus.com/forum/beginner/83024/
GitHub: https://gist.github.com/CesarR99/56f095ccb1832995661dedecf93f7b56