Total Blog Views: 54
Blog Status: publish
Created By: vishnu Created at: 08-11-2021
Tags: datatype basicprogramming coding programmer functions C++ Explore c
Solving a problem on a computer involves the following activities:
Structure of C++ Program :
A C++ Program has four subparts as shown in block diagram . These subparts can be kept in different- different source files and after it can be compile separately or together.
Include file |
Declaration of class |
Defebition of member function |
main() function |
Structure of C++ program
Program to print "Good morning" on output screen-
Program - A simple program of C++
#include<iostream>.h // include header file
using namespace std; //but you can replace #include<stdio>.h
int main()
{
cout <<"Good morning "; //print "Good morning"
return0;
}
Output of above program will be-
Good Morning
Compiling and linking process depends upon operating system.
Linux OS
This command compiles the program written in abc.cpp file. Compiler creates a object file abc.0 and which creates and executable file linking with library functions. Default executable file name is a.out.
we have the “Get things executed” lifestyle at our place of work. There are not any excuses, no if’s or however’s in our dictionary. committed to navigating the ship of creativity to create cell answers, we resolve the real-lifestyles troubles of our clients and their clients. Our passion for work has won us many awards, year after 12 months.
© Copyright Shadbox. All Rights Reserved
Rate Blog :
Share on :
Do you have any blog suggestion? please click on the link