Cpp Programming

Introduction to C++



C++ has been a major player in the software development industry for more than 30 years, supporting some of the most successful companies in the world.


In recent years, interest in the language has been growing more than ever, and it is an extremely popular choice for large-scale systems, with many big companies sponsoring its advancement.


C++ remains a complex language, which puts a lot of power in the hands of the developer. It is a unique language as it has the ability to enable programmers to write high-level abstractions while retaining full control of hardware, performance, and maintainability.

 

HISTORY


C++ was developed by Bjarne Stroustrup at Bell Laboratories over a period starting in 1979. Since C++ is an attempt to add object-oriented features (plus other improvements) to C, earlier it was called as “C with Objects”. As the language developed, Stroustrup named it C++ in 1983. The name C++ suggests “C incremented” (recall the ++ is an increment operator of C).


 C++ was made available outside Bell Laboratories in 1985. The first commercial C++ compiler, C front was released in 1985. It was only a front-end compiler for C.

 

 

Languages were developed before C++:


  •           Algol
    •          Developed By International Group
    •          Year (1960)
  •           BCPL
    •           Developed By Martin Richard
    •           Yaer (1967)
  •           B
    •           Developed By Kem Thompson
    •           Year (1970
  •          C
    •           Developed By Dennis Rechie
    •           Year (1972)
  •           C++
    •           Developed ByBjarne Stroustrup
    •           Year (1980) 



Features of C++:


Object-Oriented Programming:

 

C++ is called object-oriented programming (OOP) language because C++ language views a problem in terms of objects involved rather than the procedure for doing it.


In object-oriented programming data structures, or objects are defined, each with its own properties or attributes. Following terms are OOP basics:


  • Class
  • Object
  • Polymorphism  
  • Inheritance
  • Encapsulation
  • Abstraction

 

Platform Dependent:

 

It means language in which programs can be executed only on the operating system where it is developed & compiled. It will not going to run or execute on any other operating system.

 

 

Easy to Learn:

 

C++ accommodate a structured approach where you can break the problem into parts and design the solution modularly.

 

Case Sensitive:

 

C++ is case-sensitive. In other words, uppercase and lowercase letters are considered to be different. A variable named age is different from Age, which is different from AGE.

 

Existence of Library:


C++ comes with two standard libraries: the old C library (libc.lib), and the new C++ library (libcp.lib), which is logically divided into the stream library, and STL, the standard template library.


 Many implementations also include a pre-standard stream library for backward compatibility.

 

Portable Language:

 

One of the most frequently used languages in the world and as an open language, C++ has a wide range of compilers that run on many different platforms that support it. 


Code that exclusively uses C++'s standard library will run on many platforms with few to no changes.

 

Multi-Threading:

 

Multithreading is a specialized form of multitasking and multitasking is a feature that allows your system to execute two or more programs concurrently. 


In general, there are two sorts of multitasking: process-based and thread-based.

 

Mid-Level Programming:

 

C++ is known as a mid-level programming language. Because C++ has ability to do both low-level and high-level programming. 


When we talk about low-level programming, C++ is used to develop system applications such as the kernel, driver, etc.    

 

Uses of Pointer:

 

Execution time with pointers is faster because data are manipulated with the address, that is, direct access to memory location.


 Pointers are used with data structures. They are useful for representing two-dimensional and multi-dimensional arrays and Memory are accessed efficiently with the pointers. 


The pointer assigns and releases the memory as well.


C++ Syllabus

Introduction

 

Unit 1

What is C++ Programming – learn basics

Unit 2

Installation of C++ Compiler – Setting-up C++ Environment 

Unit 3

Hello word – Writing First Program in C++

Unit 4

Variables and Data types -  int,float,double,char..

Unit 5

Arrays in C++ - learn 2d,3, and nd array

Unit 6

Classes and Object in C++

Unit 7

OOP Concepts

Unit 8

Exception Handling – How to handle exceptions in C++

Unit 9

File and Stream – File handling

 

 

Post a Comment (0)