My overview of the code structure and it's meaning

THIS IS MY OVERVIEW OF THE CODE STRUCTURE AND IT’S MEANING.

#INCLUDE IOSTREAM MEANING

I think that the #include iostream means that it adds different syntax’s and functions like std::cout and std::cin

INT MAIN(){} MEANING

The int main is the main function. In this case, it consists of many std::cout’s, const int’s and a return of value 0

THE MEANING OF STD::COUT

The meaning of std::cout that I understand is that it prints the things we put inside it in the terminal
for eg. std::cout << “My name is mike”; - this will print my name is mike in the terminal.

MEANING OF INT AND CONST INT

int in full form means integer. We use variables to store various data. There are numerous data types like

  • int
  • float
  • double
  • char

we give our data types values and names
for eg int a = 56;

if we add const to our int then we won’t be able to change the value of the int later in our code.

RETURN 0 MEANING

the return 0 signals that the code has run properly.

STD::ENDL MEANING

std::endl signals that the line has ended

Privacy & Terms