Showing posts with label Cplusplus. Show all posts
Showing posts with label Cplusplus. Show all posts

Friday, May 17, 2019

Compiler & Interpreter

Compiler & Interpreter

Compilers and interpreters are used to convert the code of high level language into machine language. The high level program is known as source program and the corresponding machine level program is known as object program. Although both compilers and interpreters perform the same task but there is a difference in their working


Compiler

          A compiler searches all the errors of a program and lists them. If the program is error free then it converts the code of program into machine code and then the program can be executed by separate commands.

Interpreter

         An interpreter checks the errors of a program statement by statement. After checking one statement, it converts that statement into machine code and then executes that  statement. The process continues until the last statement of program occurs.


Static & Dynamic Linking

Thursday, January 3, 2019

Hello World ( First Programming Language ) !!

Code Source For Hello World Program

Click the buttons in the tabbed list that indicate the language you're looking for:

Hello World Program!!

// helloworld c++
F:\blogspot\Code Source\HelloWorld\main.cpp
 1 #include <iostream>
 2  
 3  using namespace std;
 4  
 5  int main()
 6  {
 7      cout << "Hello world!" << endl;
 8      return 0;
 9  }

Hello World Program!!

// helloworld c
F:\blogspot\Code Source\HelloWorldc\main.c
 1 #include <stdio.h>
 2  #include <stdlib.h>
 3  // main function where the execution of program begins
 4  int main()
 5  {
 6      // we use printf to print the text between "" in the screen
 7      // we use \n to return to the next line
 8      printf("Hello world!\n");
 9      return 0;
10  }

Hello World Program!!

// helloworld java
F:\blogspot\Code Source\Hello worldjava\Main.java
1 public class Main
2  {
3      // main function where the execution of program begins
4      public static void main(String args[])
5      {
6          System.out.println("Hello World ^_^");
7      }
8  }

What is C plus plus ( C++ ) Language ?

C++ Language



is a general-purpose object-oriented programming (OOP) language, developed by Bjarne Stroustrup, and is an extension of the C language. It is therefore possible to code C++ in a "C style" or "object-oriented style.“, c++ is considered to be an intermediate-level language, as it encapsulates both high- and low-level language features. Initially, the language was called "C with classes" as it had all the properties of the C language with an additional concept of "classes."
C++ is one of the most popular languages primarily utilized with system/application software, drivers, client-server applications and embedded firmware.



Who is Bjarne Stroustrup ?
Bjarne Stroustrup was born in Aarhus, Denmark, in 1950. He received a master's in mathematics from Aarhus University in 1975 and a PhD in computer science from Cambridge University in 1979.

Stroustrup then joined Bell Labs' Computer Science Research Center in Murray Hill, New Jersey, where he designed and implemented C++. This language, based on C and inspired by Simula, provides a set of general and flexible abstraction mechanisms that can be mapped directly and efficiently onto computer hardware. C++ revolutionized the software industry by enabling a variety of software development techniques-including object-oriented programming, generic programming, and general resource management-to be deployed at scale. For more than two decades, C++ has been among the most widely used programming languages, with applications in areas including general systems programming, communications, computer graphics, games, user-interfaces, embedded systems, financial systems, avionics, and scientific computation. The influence of C++ and the ideas it pioneered and popularized are clearly visible far beyond the C++ community.

Over the next decades, Stroustrup guided the further evolution of C++ through his involvement in its ISO standards effort, his books, and his many academic and popular papers.

Stroustrup is a managing director in the technology division of Morgan Stanley in New York City, a visiting professor at Columbia University, and a Distinguished Research Professor at Texas A&M University (where he taught for a decade). His research interests include design, programming techniques, distributed systems, performance, reliability, and maintainability.

His honors include: ACM's Grace Murray Hopper Award (1993), member of the US National Academy of Engineering (2004), Sigma Xi's William Procter Prize for Scientific Achievement (2005), and Aarhus University's Rigmor og Carl Holst-Knudsens Videnskapspris (2010). He is a Fellow of IEEE and ACM.