Posts

Showing posts from June, 2018

Basic Structure of C++ Program - The Coding Shala

Image
Home >> Learn C++ >> Basic Structure of C++ Program Basic Structure of the C++ Program The basic structure of the C++ program is as follows -  C++ program can be simplified into two parts - first, writing a program in a text editor and save it with the correct extension. c++ program can be save with .cpp, .c, .cp extension . second, compiling your c++ program using a compiler or online IDE to check the output of your program. Let's look the below c++ code that will print ' Hello World ' as output -   1: //This is comment inline comment 2: /* This is also comment mulitine comment 3: C++ program to display "Hello World" 4: end of multiline comment */ 5: #include<iostream> // this include header file for input output functions 6: using namespace std; 7: // main function starts where the execution of program begins 8: int main() 9: { 10: cout<<"Hello World"; // pr

Introduction to C++ - The Coding Shala

Image
Home >> Learn C++ >> Introduction to c++ Introduction to C++/CPP C++ is an intermediate level(middle-level) language, as it comprises a combination of both high-level and low-level language. It is an extension to C language and was developed by  Bjarne Stroustrup  at bell labs. C++ runs on a variety of platforms like Mac Os, Unix, and Windows. C++ is an Object-Oriented Programming Language.  Uses of C++ C++ is used by many programmers of different fields to create computer software. C++ is mostly used to write device driver programs, system program, and applications that depends on direct hardware manipulation. it is also used in the fields of research.  C++ is a really Popular, strong and frequently used programming language.  C++ is widely used for teaching and research because it is clean enough for the teaching of basic concepts. Primary user interfaces of Systems like Mac, Windows are written in C++. This is the basic Introduction of