Day 1 - 100 days of code C++
Observations
#include
It means that we are calling a library of the language, that is, we are calling some resource whose purpose is to help in some action that our code is doing, in this case, we are calling this library to print our screen output - hello world - via * std::cout*.
int main()
This is the main function of the language, that is, our program does not exist if there is no main function. The parentheses are used to pass a parameter, in this case we are not passing any.
{}
The keys are the representation of where our code will be executed, therefore it delimits the execution block, even calling other functions or executing something simpler, however being within these delimiters.
std::cout
This is our command responsible for calling the c++ language standard library that works with data input and output - iostream. Without this command we would not be able to print an output on screen.
std::endl
If you stick to STD::, this means that STD is an abbreviation of the word STANDARD, that is, it is an abbreviation that references the C++ Standard library / directive - iostream. Its purpose is to make a line break, that is, when you finish executing the command, the cursor goes to a new line. The letter "\n" does the same thing, I used it because it is a simpler language syntax.
return()
Return(0) means that, if our program does not present any syntax errors, it will not return any errors, thus ending our program properly.
Conclusion
As we observed, C++ is an apparently simple language, it has a concise syntax, for me, for the time being, it did not present major problems, since, as far as I could see, it shares characteristics of other languages that I had the opportunity to have contact with until then. Next day, I want to get into the subject of variables and their types.














