C, C++, Compilers, IDE, JAVA, Programmimg Languages, Softwares, windows, Windows: Tricks &Hacks

Free Download Code::Blocks

Code::Blocks is a free development environment for the C++ programming language. It supports 20 different compilers, including Microsoft Visual C++, C Tiny, Digital Mars, and Borland C ++. Plugins galore The program is fully configurable thanks to the numerous plugins and options. Features such as automatic formatting of code or even creating short games in… Continue reading Free Download Code::Blocks

Advertisements
C, C++, Programmimg Languages

Advantage of C++ over C language

C++ have may advantages over C language because of the features not available in C, but available in C++. Classes Constructor and destructor Exception and try/catch blocks Function overloading Member function Namespace New and delete function and operator Standard template library Operator overloading Reference types Default arguments to functions Reference variables Abstract data types Template… Continue reading Advantage of C++ over C language

C++, JAVA, Programmimg Languages

Concept of OOPS

In this post, I generally explain the concepts of OOPS in simple way, for understanding them. First of all, the concepts of OOPS are- Objects Classes Data Abstraction Data Encapsulation Inheritance Polymorphism Message passing. Now I didn't explain these in a long para, except of long para I use single line so you can easily… Continue reading Concept of OOPS

C++, Programmimg Languages

Write a program of multilevel inheritance having 3 classes person, student & exam.

#include<iostream.h> const int size = 50; class person { char name[20]; int age; char sex; Public: void get_data() { cout<<"Name="; cin>>name; cout<<"Age="; cin>>age; cout<<"Sex="; cin>>sex; } void display () { cout<<"Name="<<name<<endl; cout<<"Age="<<age<<endl; cout<<"Sex="<<sex<<endl; } }; class student:: public person  { private: int rollno; char branch[50]; public: get_data() { person::get_data(); cout<<"Roll No.="; cin>>rollno; cout<<"Branch="; cin>>branch; }… Continue reading Write a program of multilevel inheritance having 3 classes person, student & exam.

C++, Programmimg Languages

Write a Program in C++ to use modulus arithmetic operators

#include<conio.h> #include<iostream.h> main( ) { int var1, var2, result; //accept input cout<<”Enter first number :”; cin>>var1; cout<<”Enter second number :”; cin>>var2; //modulus operator result = var1 % var2; cout<<"\nThe remainder when ”<<var1<<” is divided with “<<var2<<” using modulus operator is :- “<<result; getch(); } Output: Enter first number : 12 Enter second number : 5… Continue reading Write a Program in C++ to use modulus arithmetic operators