Dev C++ Programs Pdf For Class 11

Hi:-) I am too in class 11 and for scoring good marks in CBSE, I think that you can go with Sumita Arora and some sample papers. They contain ample amount of questions for your practice( I can’t assure you of reliability of Sumita Arora, it seems.

C++ programs helps you to learn C++ programming practically.

So here, we have listed more than 100 C++ programs along with their output from simplest C++ program to shutdown your computer using C++ program.

Here, we have included two functions namely clrscr() and getch() (mainly for Turbo C++ users) in approximately every C++ program.

The function clrscr() (of conio.h library) is used to clear (clean or format) the output screen to watch the program's output only. And the function getch() (of conio.h library) is used to hold the output screen (at last of the program or when the program finished) until a key is pressed. After pressing the key, your output screen will be closed and you will be backed to the source code.

Let's start from simplest C++ program, given here in the following example.

C++ Program Example 1

Following is the simplest C++ program which will print the string 'Hello Compiler, I am C++' on the output screen as shown here:

When the above C++ program is compile and executed, it will produce the following output:

C++ Program Example 2

Dev c programs pdf for class 11 free

Here is another C++ program example.

When you compile and run the above C++ program, you will get the following output after the sample run:

C++ Program Example 3

Here is the sample run of the above C++ program. Here is the first run:

This is the second run:

C++ Program Example 4

Here is the sample run of the above C++ program. Below is the first run:

Now, here is the second run:

C++ Program Example 5

Here is the sample run of the above C++ program. Following is the first run:

Now is the second run:

Pdf

Other Languages Programming Examples

Dev C Programs Pdf For Class 11 Physics

You may also like to go through all these programs list in other languages such as:

Game Dev Programs