Skip to main content

Posts

TOKENS IN C++

Tokens -               Tokens are the smallest individual unit of a program . C++ generally has following tokens                                            1] Keyword                                            2] Identifiers                                            3] Literals                                            4] Punctuators                                            5] Operators 1] Keywords - ...
Recent posts

SOME COMMON FORMS OF ERROR

                                   In C++ programming language , there are generally 5 types of errors and these are as -   1] Syntax error -                             Syntax error occurs when programming languages are misused that is when a grammatical rule of C++ is violated.   2] Semantic error -                                 semantic error occurs when the statement are not meaningful . semantic refers to the rule which gives the meaning of the statements.   3] Type error -                           if a function is given a wrong type of data type error is signaled by a compiler. 4] Run time error -              ...

STRUCTURE OF A PROGRAM

COMMENT :                       Comments are almost the good thing of a program. They are generally used by a programmer to explain their programming statement’s purpose for which they are used in the program.                      Comments are generally written in two ways in a program and these ways are as –                                             1] //comment                                            2] /* comment */                      The main difference between both of these two ways of writing the comments is that the first way is only used by a programmer when there is a single line...

INTRODUCTION

C++ (pronounced as "see plus plus") is a computer programming language based on C. It was created for writing programs for many different purposes. In the 1980's, C++ became one of the most used programming languages in the world. The C++ programming language was developed by Bjarne Stroustrup at Bell Labs in the 1980s , and was originally named "C with classes" by   rick mascitti . The language was planed as an improvement on the C programming Language ,adding features based on object oriented programming. Step by step , a lot of advanced features were added to the language ,like operator overloading ,  exception handling and templates .