C++
1)Libraries
We use commands in libraries. Every command are in a library. We import libraries to computers like this:
#include<name>
You type the name of the library between < and >.
2)Main Function
Computers run the code but they must know where are the codes? We show it by functions. The computer first runs the main function. We type the main function like this:
void main(){codes}
3)Standart Library
C++ have some command and you generally use them. But when you use them, you must show that to the computer: I want to use x command in the standard library. You must focus on the library or else the computer can not find the command. We use this:
std::command
If you don't want to use std:: all time you can type using namespace std; but programmers don't advise this because computers may mix the command.
3)Syntax
You must care about syntax rules in programming or else complier will return errors. The most important syntax rules:
Comments
Post a Comment