Facebook Twitter Instagram
Slider Image 1 Slider Image 2 Slider Image 3

Identifiers

In real life we use different names to identify things, same as we use identifiers to know make names for different objects, variables, functions. In C++ programme an identifier may consist maximum 31 characters. If name length is greater than 31 then compiler will identify first 31 characters and skip others.

Default Image

Tokens

A source programme may consist different type of elements of syntax. These elements could be keywords, variables, functions, constants etc. These elements are known as tokens.

Default Image

C++ Elements

As every language in the world has its own syntax writing style with some characters same as every computer language also have set of characters. With the help of these characters we write source code. These characters/alphabets of c++ are following:

Default Image

Memory map of C++ programme

When an object file is run on computer it uses four different areas of memory.

Default Image

Debugging in C++

Different type of errors may occur in C++ programme. These errors called bugs. The process of finding and removing these errors called debugging. There are three types of errors that may occur in a programme: Syntax errors Logical errors Runtime errors

Default Image

Structure of C++ Programme

C++ programme basically consist on three parts: Preprocessor directives Main function C++ statements

Default Image

Introduction to C++

C++ is a powerful computer programming language. It is widely used for developing of system and application software. C++ is advanced version of c language. C language is procedural language and C++ is object-oriented programming language. Most of the basic programming languages were developed in 1960’s. In 1969 B language was developed by Ken Thomson at Bell laboratories. This language has advance features as compare other languages of that era. UNIX operating system was first write in B language at Bell laboratories in 1970. B was types less language meant that programmer don’t need to declare a data type of a variable.

Default Image

Computer Programme

A set of instruction that tells a computer to perform a specific task on a computer is called computer programme. A computer programme is written in a computer language. A programme may contain thousands of instructions or individual files, each of them for a specific task or may contain some sort of data. A windows-based programme may contain different files.

Default Image

Language Processor

A computer only understands machine language (0’s and 1’s) but now a day most of the high-level programming languages use most of the English words that are not directly understandable by computer. As you observe most of the foreign delegations talk in their own language and respondents of our country talk in native language and this thing create a communication gap. How to resolve this problem? We arrange an interpreter that understand both languages. In the case of computer, we have a language processor. Language processor convert high-level language into computer understand able language.

Default Image

Programming Languages

Language is the way of communication between tow persons. If we want to interact to someone we should know his/her language. Same in the case of computer if we want to interact with computer we should know the language of computer. Computers only understand one language that called binary. Binary is easy to understand by computers but difficult for humans, so humans create some translators that help them to communicate with computer.

Default Image