Before Moving Ahead with the Programming In C++ tutorials, Lets have a look at what we will learn in these Topics.
By the end of this Subject, we will be able to learn:
By the end of this Subject, we will be able to learn:
Starting with C++ How C++ evolved from C? The history of C++ begins with C. C++ is built upon the foundation of C. Thus, C++ Read More »
In the procedure oriented approach, the problem is viewed as the sequence of things to be done such as reading, calculating and printing such as Read More »
Here is an example of a complete C++ program: // The C++ compiler ignores comments which start with // double slashes like this, up to the Read More »
Built-in-type 1) Integral type : – The data types in this type are int and char. The modifiers signed, unsigned, long & short may be applied Read More »
Declaration of variables. C requires all the variables to be defined at the beginning of a scope. But c++ allows the declaration of variable anywhere Read More »
Assignment (=): The assignment operator assigns a value to a variable.a=5; This statement assigns the integer value 5 to the variable a. The part at Read More »
IF – ELSE STATEMENT The complete form of the if statement is if(expression) statement else statement where the targets of the if and else are Read More »
Advantages of OOP languages are: (i) OOP introduces the concept of data hiding & data encapsulation, because of which user is exposed to minimal data, Read More »
Class is a collective representation of a set of member variable and member function under one name. Structure is a collection of member variables and Read More »
It is a non-member function that can access the private members of the class to which it is declared as friend. According to OOP concept Read More »
What is class? Class is a collection of similar types of objects, where each class having similar properties and types. Ex: Bird, Animal Need of Read More »
Member functions: All the the declared functions and varibles are part of the class and hence members of the corresponding class. Those are declared and Read More »
Static members Class members which are declared as static are known as Static members. Always Static variable shares same memory location. Syntax: Static int a; Read More »
One of the best feature that OOP provides is inheritance, where a new class can be constructed from an existing class. The class which is Read More »
Polymorphism Poly means many and morphism means form and this is a greek word. In OOP function overloading and operating are example of polymorphism. Polymorphism Read More »
A constructor (having the same name as that of the class) is a member function which is automatically used to initialize the objects of the Read More »
There are different type of constructors in C++ 1 Overloaded Constructors Besides performing the role of member data initialization, constructors are no different from other Read More »
The syntax for declaring a destructor is : -name_of_the_class() { } So the name of the class and destructor is same but it is prefixed Read More »
class to which it (the operator) is applied. The operator function helps us in doing so. The Syntax of declaration of an Operator function is as Read More »
C++ supports two complete I/O systems: the one inherited from C and the object oriented I/O system defined by C++ (hereafter called simply the C++ I/O Read More »
The classes istream and ostream define two member functions get(),put() respectively to handle the single character input/output operations. There are two types of get() functions.Both get(char Read More »
A line of text can be read or display effectively using the line oriented input/output functions getline() and write(). The getline() function reads a whole Read More »
When a large amount of data is to be handled in such situations floppy disk or hard disk are needed to store the data .The data Read More »
While using constructor for opening files,filename is used to initialize the file stream object. This involves the following steps Create a file stream object to Read More »
The function open() can be used to open multiple files that uses the same stream object. For example to process a set of files sequentially,in such Read More »
Copyright © 2024 | ExamRadar. | Contact Us | Copyright || Terms of Use || Privacy Policy
GUEST POSTING AND WRITING FOR US