100+ C++ Programs with Output For Students & Professionals
هذا الملف سيفيدكم ليس فقط في مقرر برمجة1 بل مقررات أخرى
ماهي لغة سي بلس بلس c++ سي++ (تنطق: سي بلس بلس) (بالإنجليزية: ++C) هي لغة برمجة كائنية، متعددة أنماط البرمجة، مصرفة، سكونية الأنماط. وتضم العديد من ميزات لغات البرمجة عالية المستوى ومنخفضة المستوى. بدأ تطوير هذه اللغة كامتداد للغة C تحت اسم (C مع الصفوف) من قبل بيارن ستروستروب في مختبرات بل عام 1979 وتم إضافة العديد من الميزات الأخرى لاحقاً وتغير الاسم عام 1983 ليصبح ++C من باب الدعابة عبر استخدام معامل الزيادة لجانب اسم لغة C تأكيداً على أنها "التالي للغة C".
تعتبر ++C إحدى اللغات الأكثر شيوعاً وقد استخدمت على نطاق واسع في بناء أنظمة التشغيل والتعامل مع البنية الصلبة للحاسوب ابتداءً من الأنظمة البرمجية وبرامج المستخدم، مروراً بمشغلات الأجهزة والأنظمة المضمنة وانتهاءً بالمخدمات عالية الأداء وبرامج التسلية كالألعاب الفيديوية نظراً لقدرة تصريفها إلى كود لغة تجميع شديد الفعالية
طبعا الترتيب من اليمين مكتوب رقم الصفحة ورقم البرنامج
Index
Program Name Page No.
1. Hello World C++ Example Program 12
2. if Statement Example Program in C++ 13
3. if..else Statement Example Program In C++ 14
4. For Loop Example Program In C++ 16
5. While Loop Example Program In C++ 17
6. Do While Loop Example Program In C++ 18
7. Simple Example Program For Constructor In C++ 19
8. Simple Example Program For Parameterized
Constructor In C++ 20
9. Simple Example Program For Constructor
Overloading In C++ 23
10. Simple Constructor Example Program For Find Prime
Number In C++ 25
11. Simple Example Program For Copy
Constructor In C++ 28
12. Simple Class Example Program In C++ 30
13. Simple Class Example Program For Find Prime
Number In C++ 32
14. Simple Example Program For Namespace In C++ 34
15. Find Prime Number Example Program In C++ 35
16. Find Prime Number by another method Example
Program In C++ 37
17. Fibonacci series Example Program In C++ 39
18. Factorial Using Recursion Example Program In C++ 41
19. Factorial Using Function Example Program In C++ 43
20. Factorial Using Loop Example Program In C++ 45
21. Simple Example Program for Function In C++ 46
22. Simple Example Program for Function Find
Smallest Number In C++ 47
23. Simple Example Program for Function to
Find Factorial In C++ 48
24. Simple Example Program for Inline Function
Using C++ Programming 50
25. Simple Addition in C++ Binary Operator
Overloading Using C++ Programming 51
26. Simple Program for Multiple Inheritance
Using C++ Programming 53
27. Simple Program for Inline Function Using
C++ Programming 56
28. Simple Program for Function Template
Using C++ Programming 58
29. Simple Program for Function Overloading
Using C++ Programming 60
30. Simple Program for Friend Function
Using C++ Programming 63
31. Simple Program for Exception Handling with
Multiple Catch Using C++ Programming 65
32. Simple Program for Exception Handling Divide
by zero Using C++ Programming 67
33. Simple Program for Constructor Using
C++ Programming 69
34. Simple Program for Binary Operator
Overloading Using C++ Programming 71
35. Simple Program Book Entry Using structure
Variable in C++ Programming 74
36. Simple Program for Write File Operation
Using C++ Programming 76
37. Simple Program for Virtual Functions
Using C++ Programming 77
38. Simple Program for Virtual Base Class
Using C++ Programming 79
39. Simple Program for Unary Operator Overloading
Using C++ Programming 83
40. Simple Program for Static Data and Member
Function Using C++ Programming 86
41. Simple Program for Single Inheritance
Using C++ Programming 88
42. Simple Program for Copy Constructor
Using C++ Programming 91
43. Simple Program for Read File Operation
Using C++ Programming 93
44. Simple Program for Read & Write File Operation
(Convert lowercase to uppercase) Using C++ Programming 95
45. C++ program which adds two integers 97
46. C++ Program to output an integer, a floating
point number and a character 98
47. C++ Program to find the sum, difference, product
and quotient of two integers 99
48. Program to enter two integers and find their sum
and average 101
49. Program to enter velocity, acceleration and time
and print final velocity using the formula : v = u + a * t 102
50. Program to enter your age and print if you should
be in grade 10 103
51. Program to enter an integer and print if it is greater
or less than 100 105
52. Program to enter an integer and output its 15 multiples 106
53. Program to enter two integers and print the quotient
and remainder 108
54. Program to enter an integer and find out if it is
even or odd 109
55.Program to change the foreground colors and draw
circles on the screen 110
56. Program to draw 2 rectangles and fill 1 of them 112
57. Program to enter three integers and output the
biggest integer 114
58. Program to draw circles 115
59. Program to change the background colors
on the screen 117
60. Program to enter three integers and output
the biggest integer using IF 119
61. Program to enter an integer and print out
its successor 120
62. Program to enter an integer and output the cube
of that integer 121
63. Program to enter a string and find its length 122
64. Program to switch between different cases 123
65. Program to enter the principal, rate & time and
print the simple interest 125
66. Program to enter an integer and print if it is
prime or composite 127
67. Program to enter the sale value and print the
agent’s commission 129
68. Program to enter the unit reading and output the
customer’s telephone bill 131
69. Program to find the total days in the year till date 133
70. Program to compute the fibonacci series 134
71. Program to enter an integer and print its total
value based on the formula
‘x - 1/3!x^3 + 1/5!x^5 - 1/7!x^7 + 1/9!x^9’ 136
72. Program to convert days into years and weeks 138
73. Program to find the roots of a quadratic equation 139
74. Program to enter an integer and output it in the
reversed form 141
75. Program to count the number of words and characters
in a sentence 142
76. write program to take the salary of the employee
as a screen input from the user. 144
77. Program to find the sum of each row & column
of a matrix of size n x m and 146
if matrix is square, find the sum of the diagonals also.
78. Program to convert 2-digit octal number into binary
number and print it 149
79. Program to identify if an input is a symbol,
digit or character 151
80. Program to enter three integers and output the
smallest integer using IF 152
81. Program to enter a sentence and output the
number of uppercase & lowercase consonants, uppercase
& lowercase vowels in sentence. 153
82. Program to print the first 10 lines of pascal’s triangle 155
83. Program to enter 10 integers in a single-dimension
array and then print out the array in ascending order 157
84. Program to find the sum of either of the diagonals
of a 4 x 4 matrix 159
85. Program to convert temperatures from Celsius to
Fahrenheit and vice versa 161
86. Program to enter a character and output
its ASCII code 163
87. Program to enter a letter and output the next 2 letters 164
88. Print 1 to 100 in C++, without loop and recursion 165
89. simple C++ program to show working of getline. 167
90. Print 2D matrix in different lines and without curly
braces in C/C++? 170
91. A simple and complete C++ program to demonstrate
friend Class 171
92. A simple and complete C++ program to demonstrate
friend function of another class. 172
93. A simple and complete C++ program to demonstrate
global friend 173
94. Write a programs to show Constructors in C++ 174
95. Write a program on sorting. 175
96. Write a program to demonstrate Binary Search
Algorithms in C++ 176
97. Can namespaces be nested in C++?Write the program. 178
98. Write a program to find the prime numbers from
2 to 100 by using nested for loop. 180
99. Write a program using nested if statement. 181
100. Write a program to demonstrate nested
switch statement. 182
101. Predict the output of following C++ program.
(1 to 15 Programs
تم تحميل الملف من الأخ رأفت علي
جزاه الله كل خير
من مجموعة عبدالله عيد
اسم الملف : 100+ C++ Programs with Output
اتمنى لكم التوفيق والنجاح
hamad bashir





ليست هناك تعليقات:
إرسال تعليق