Basic Structure of cpp program with output in 2021

Basic Structure of cpp program with output in 2021
Basic Structure of cpp program with output in 2021 
style="text-align: left;">

    Basic Structure of C++ Program with output in 2021

    #include<iostream.h>


    #include<conio.h>


    int main()


    {


    cout<<"Welcome to icoderweb Website";


    getch();


    }


    *****OUTPUT*****


    Welcome to icoderweb Website

    Most Other Programming Syntax 

    👉C Language Syntax

    👉Java Language Syntax

    👉Python Language Syntax 


    Function Description in Details

    #include<iostream>: function is the first line of our code. # symbols represent a preprocessor in a c++ language program. 

    when the program is the execution of tells. include line is the C++ program the first line of code. 

    It stands for the input-output stream, in this function is a predefined function of the c++ library.

    conio: conio function is the c++ language predefined function.it is the console input/output function.

    void: void is the keyword of the c++ language. void keyword is returned by the function. In the library we can use any other keyword like integer, floating, character, etc, void keyword is the return keyword.

    main(): A main() is a function here The execution of any program starts from the main function.c++ language every program can be stared in the main function. so main functions are the most useful function in the c language. 

    clrscr(): A clrscr function can be used for the clear output screen of our computer. clrscr function defined in the condo header files included in this function.

    cout:cout function is the most useful function in c++ programming language. cout function is the predefined function in the c++ library. 

    cout function using the output screen of our program. cout function gets the information of the user data. cout function can be defined iostream input/output header file include.

    getch(): getch function is the c++ language function.it can be used to hold the output screen. getch function already defined of console input/output header files. getch function can not use our c++ language program can not hold the output screen.


    Post a Comment

    0 Comments
    * Please Don't Spam Here. All the Comments are Reviewed by Admin.