Friday, April 27, 2018
Learning Pre-operations
In C++, the lines of code that start with a pound sign (#) are dedicated commands for the pre-processor, which is basically the part of the compiler that dictates what the compiler is going to need to know. In this screenshot, the user has added the command #include <iostream>, which basically tells the compiler to begin running. The user has also defined variables A and B which are set to 0. And lastly, using namespace std; tells the compiler that each time it sees a command such as cout, (nromally std::cout), it tells it that there is the std:: operator in front of it.
Tuesday, April 24, 2018
Finding a Compiler
In C++, you require a "compiler" to run and test your programs. After a while of searching, I found a decent, online compiler. It does everything I need it to do without having to download a program to run my programs. I am using cpp.sh.
Thursday, April 19, 2018
C++
Subscribe to:
Posts (Atom)