i now know that const means we do not want that specfific value of interger to be able to change, so const prevents it, if you change the value of one of the 3 intergers.
also this
Heres my actual implemented story, im likely to change it to account for seperate levels of hacking, but instead of server room, itll just be, theres a X amount of levels to this bomb diffusal good luck mate.
“You are a member of the city’s finest bomb call out team; BOMB-OUT
You have been tasked to diffuse the bomb, located at the city center.
You need to enter the correct codes to progress to the next hack, failing, will result in yours, and many, many peoples deaths…
Good luck! We are all counting on you! (no pressure…)
PS…Dont F*ck up! - City Police Department Cheif - Bob Porky
PLEASE ENTER CORRECT CODE TO CONTINUE!”
i also have been instructed to come here and explain what sections of code weve gone through.
so
so first off all we have includes, as in
#include
this is classed as a PreProcessor Directive,which serves as a sort of this section is for pre loading different stuff that adheres to your project - i recognise this from basic python.
next up, we have have whats called the main fuction, and is implimented like:
int main()
and what this does is tell visual studio that this is the main function of your code.
an expression can be made into a expression statement, by entering a semi colon at the end of an expression.
Decleration statements are code that declare something, in this case, our varibles and values.
the return statment is we tell the script/code to terminate execution of function, and returns control to the calling function.
here is my progress of my tripple x game, im at video 21, and its asked to upload a screenshot of the terminal so et voila!