Computer Programming

You will learn about Objects, Classes, Inheritance, Data Abstraction, Data Encapsulation, Polymorphism, Overloading, and Reusability. Before starting to learn C++ it is essential to have a basic knowledge of the concepts of Object oriented programming. Some of the important object oriented features are namely: Objects Classes Inheritance Data Abstraction Data Encapsulation Polymorphism Overloading Re usability In order to understand the basic concepts in C++, a programmer must have a...
Every language will provide great feature which is used in source code. We can write more readable and eye catching program structure using comments. We should use as many as comments in C++ program. "Comment is non executable Statement" in the C++. Types of Comment in C++ Programming Single Line Comment Multiple Line Comment Single Line Comment cout< Single Line comment starts with “//” symbol. Remaining...
When user will enter value, statement n%2==0 will check wether it is divided by 2 or not if it is divided by 2 output will be "Even number" otherwise it is "odd number". The modulus operator is useful in a variety of circumstances. It is commonly used to take a randomly generated number and reduce that number to a random...
C++ Programming language is most popular language after C Programming language. C++ is first Object oriented programming language. The most common type of instruction in a program is the statement. A statement in C++ is the smallest independent unit in the language. In human language, it is analogous to a sentence. We write sentences in order to convey an idea....
Write a program to find the binar equivalent of this number using recursion. A positive integer is entered through the keyboard. Like Decimal Value 2(Input)-Binary value 10(Output). I know how to convert decimal to binary but I've found that converting binary to decimal is much much harder. Maybe my knowledge about the codes is limited to most most basic. //Binary equivalent of a...
Write a program to find out whether it is an odd or even number? Any positive integer is input through the keyboard. The best way to see if a given number is odd or even is to use the modulus operator (%). The modulus operator returns the remainder when dividing two numbers. So if you do a modulus of 6 %...
I've searched all over the internet looking for a list like this of  ASCII codes, but couldn't find them anywhere. Now, I've made a list of them myself. Remember that in different programs, different characters may or may not appear. For example, in notepad, the ? appears to be a - with no arrowhead. In internet browsers, especially IE,...
Write a C program to reverse the string without using strrev() function.This program reverses a string entered by the user. For example if a user enters a string "reverse me" then on reversing the string will be "em esrever". We show you three different methods to reverse string the first one uses strrev library function of string.h header file...
Many Time we are face a lot of problem when we have to reinstall windows on our computer or laptop. First thing we have to decide from where to install windows? The options available are DVD or USB Pendrive. In the latest new netbooks, mostly there is no DVD drive. So if you want to install windows you have...
Write a Program in C to check whether a given number is palindrome or not. The simplest method is to reverse the digits of the original number and check to see if the reversed number is equal to the original. This is not an efficient way of doing it but, for ints or long ints, it works well enough What is...
10,558FansLike
566FollowersFollow
5,977SubscribersSubscribe

Recent Posts