Sekar's Fresher Online
Attention Entry Level Computer Engineers: Looking for the best way to measure, improve and promote your career skills? Our Group offers free information, tests, and sample interview questions that will help to improve your information technology skills. At  we are dedicated to helping entry level computer engineers achieve the ultimate dream, a rewarding career in computer engineering - one that will advance your career to its maximum potential.
CPP SAMPLE PROGRAMS COLLECTION
 
BASIC Programs List
 
Output (cout) Examples
1. Write a program in C++ to display the message ? welcome to c++ programme writing? ?
2. Write a program in C++ to find the area of circle ?
3. write a program in C++ to find the area of triangle ?
4. Write a program in C++ to find the area of sphere ?
5. Write a program in C++ to find the circumference of circle ?
Input (cin) Examples
6. Write a program in C++ to find the area of circle using input value ?
7. Write a program in C++ to find the area of triangle using input value ?
8. Write a program in C++ to find the area of sphere using input value ?
9. Write a program in C++ to find the circumference of circle using input value ?
10. Write a program in C++ to read and print an given character ?
11. Write a program in C++ to print the ascii value of given character ?
12. Write a program in C++ to read and print the given integer ?
13. Write a program in C++ to read and print the given float ?
14. Write a program in C++ to read and print the given float with two decimal places ?
15. Write a program in C++ to read and print the given double ?
16. Write a program in C++ to read and print the given double with two decimal places ?
17. Write a program in C++ to Arithmatic operations of two integer numbers ?
18. Write a program in C++ to Arithmatic operations of two integer numbers .Print these results in separate lines ?
19. Write a program in C++ to Arithmatic operations of two long numbers .Print these results in separate lines ?
20. Write a program in C++ to Arithmatic operations of two float numbers .Print these results in separate lines ?
21. Write a program in C++ to Arithmatic operations of two double numbers .Print these results in separate lines ?
Character Examples
22. Write a program in C++ to print the upper case letters to lower case ?
23. Write a program in C++ to print the lower case letters to upper case ?
Datatype Conversion
24. Write a program in C++ to read float value and print integer equivalent ?
25. Write a program in C++ to read int value and print float equivalent ?
Manipulator Functions
26. Write a program in C++ to show of a numeric value of a variable using hex, oct, and dec manipulator functions. ?
27. Write a program in C++ to show of a numeric value of a variable using setbase functions. ?
28. Write a program in C++ to disply the value using setw manipulator functions. ?
29. Write a program in C++ to disply the value and fill unused field width some characters using setfill function. ?
IF Programs List
 
1. write a program in C++ to check whether the given number even or odd ?
2. write a program in C++ to check whether the given number positive ,negative or zero ?
3. write a program in C++ to check whether the given year is leap or not ?
4. Write a program in C++ to check whether the given character upper, lower , numbr or not ?
5. Write a program in C++ to change upper to lower ?
6. Write a program in C++ to change lower to upper ?
7. Write a program in C++ to print a word form of given number between 0 to 9 ?
8. Write a program in C++ to print a word form of given number is tens between 1 to 99 ?
9. Write a program in C++ for relations operations of two given integer numbers ?
10. Write a program in C++ for relations operations of two given float numbers ?
11. Write a program in C++ for given mark contain which grade ?
12. Write a program in C++ to find biggest of two given numbers ?
13. Write a program in C++ to find smallest of two given numbers ?
14. Write a program in C++ to find biggest of three given numbers ?
15. Write a program in C++ to find smallest of three given numbers ?
16. Write a program in C++ to find biggest of three given numbers using && operator ?
17. Write a program in C++ to find smallest of three given numbers using && operator ?
18. Write a program in C++ to display the name of the day in a week .here given input range is 1 to 7. ?
19. Write a program in C++ to find an biggest of four given numbers ?
20. Write a program in C++ to find an smallest of four given numbers ?
21. Write a program in C++ to find a vowel or not of given character ?
 


 

SWITCH Programs List
 
WHILE Programs List
 
Numbers with while loops
1. Write a program in C++ to print the numbers 1 to 100 ?
2. Write a program in C++ to sum of first 100 numbers ?
3. Write a program in C++ to sum of first N numbers ?
4. Write a program in C++ to sum of M to N numbers ?
5. Write a program in C++ to find the average of 1 to 100 ?
6. Write a program in C++ to sum of first N numbers ?
7. Write a program in C++ to average of M to N numbers ?
8. Write a program in C++ to display the even or odd numbers between 1 to 100 ?
9. Write a program in C++ to display the even or odd numbers of first N numbers ?
10. Write a program in C++ to display the even or odd numbers between to ranges ?
11. Write a program in C++ to display the leap years between 1000 to 2000 ?
12. Write a program in C++ to display the leap years of given range ?
13. Write a program in C++ to print the numbers between two ranges ?
14. Write a program in C++ to print the number until -1000 is given a input ?
15. Write a program in C++ to print the positive , negative and zero until -1000 is given a input ?
16. Write a program in C++ to count the positive , negative numbers and zero until -1000 is given a input ?
17. Write a program in C++ to sum of the positive , negative numbers until -1000 is given a input ?
18. Write a program in C++ to mean of the positive , negative numbers until -1000 is given a input ?
19. Write a program in C++ to factorial of given number until -1000 is given a input ?
Comparsion of numbers with while loops
20. Write a program in C++ to find biggest of two numbers using ternary operator ?
21. Write a program in C++ to find smallest of two numbers using ternary operator ?
22. Write a program in C++ to find biggest of three numbers using ternary operator ?
23. Write a program in C++ to find smallest of three numbers using ternary operator ?
24. Write a program in C++ to find biggest of ten numbers ?
25. Write a program in C++ to find smallest of ten numbers ?
26. Write a program in C++ to find biggest of N numbers ?
27. Write a program in C++ to find smallest of N numbers using ternary operator ?
28. Write a program in C++ to read and display 10 numbers using array ?
29. Write a program in C++ to read and display of N numbers using array ?
30. Write a program in C++ to find mean of ten numbers using array ?
31. Write a program in C++ to find mean of N numbers using array ?
32. Write a program in C++ to find the biggest of 10 numbers using array ?
33. Write a program in C++ to find the smallest of 10 numbers using array ?
34. Write a program in C++ to find the position of biggest number in the array ?
35. Write a program in C++ to find the position of smallest number in the array ?
36. Write a program in C++ to find the positions of biggest&& smallest number in the array ?
37. Write a program in C++ to interchange the biggest&& smallest number in the array ?
38. Write a program in C++ to find the second biggest of N numbers using array ?
39. Write a program in C++ to find the second smallest of N numbers using array ?
40. Write a program in C++ to find the second biggest and smallest of N numbers using array ?
41. Write a program in C++ to find the positions of second biggest and smallest of N numbers using array ?
42. Write a program in C++ to interchange the second biggest and smallest of N numbers using array ?
Matrix with while loops
43. Write a program in C++ to read and write 3x3 matrix ?
44. Write a program in C++ to read and display the transpose of 3x3 matrix ?
45. Write a program in C++ to find the sum of matrix ?
46. Write a program in C++ to find the product of two matrixes ?
47. Write a program in C++ to read and display MxN matrix ?
48. Write a program in C++ to read and display the transpose of MxN matrix ?
49. Write a program in C++ to sum of two MxN matrix ?
50. Write a program in C++ to poduct of two MxN matrix ?
Text Processing with while loops
51. Write a program in C++ to read the characters and display until $ is given ?
52. Write a program in C++ to read the characters and display ascii value until $ is given ?
53. Write a program in C++ to classify the character is upper or lower case until $ is given ?
54. Write a program in C++ to count the upper , lower , number and special characters until $ is given ?
55. Write a program in C++ to read and print a word ?
56. Write a program in C++ to read and print a sentence until . is given ?
57. Write a program in C++ to read a line until ?\n? is given ?
58. Write a program in C++ to read a text until ?$? is given ?
59. Write a program in C++ to count the number of characters in the input text ?
60. Write a program in C++ to count the number of words in the input text ?
61. Write a program in C++ to count the number of characters ,words and lines ?
62. Write a program in C++ to copy one array to another array ?
63. Write a program in C++ to copy the first N characters ?
64. Write a program in C++ to copy the N characters form M position onwards ?
65. Write a program in C++ to copy the last N characters ?
66. Write a program in C++ to copy upper to lower case ?
67. Write a program in C++ to copy lower to upper case ?
68. Write a program in C++ to replace semicolon instead of comma ?
69. Write a program in C++ to replace by comma instead of semicolon; ?
70. Write a program in C++ to delete comma from the given string ?
71. Write a program in C++ to copy the reverse of the given string ?
72. Write a program in C++ to merge to arrays ?
73. Write a program in C++ to fortran to pascal statement ?
74. Write a program in C++ to pascal statement to fortran statement ?
75. Write a program in C++ to count the lines in the text ?
76. Write a program in C++ to print the first position of every line in the given text ?
77. Write a program in C++ to store the first position of every line in the given text in array ?
78. Write a program in C++ to print the M th line ?
79. Write a program in C++ to print the M th to N th line ?
Pattern Matching with while loops
80. Write a program in C++ to find out given pattern exist or not ?
81. Write a program in C++ to count the no of times occur in given pattern ?
82. Write a program in C++ to delete the given pattern ?
83. Write a program in C++ to replace the given pattern ?
 
FOR Programs List
 
Numbers with for loops
1. Write a program in C++ to print the numbers 1 to 100 ?
2. Write a program in C++ to sum of first 100 numbers ?
3. Write a program in C++ to sum of first N numbers ?
4. Write a program in C++ to sum of M to N numbers ?
5. Write a program in C++ to find the average of 1 to 100 ?
6. Write a program in C++ to sum of first N numbers ?
7. Write a program in C++ to average of M to N numbers ?
8. Write a program in C++ to display the even or odd numbers between 1 to 100 ?
9. Write a program in C++ to display the even or odd numbers of first N numbers ?
10. Write a program in C++ to display the even or odd numbers between to ranges ?
11. Write a program in C++ to display the leap years between 1000 to 2000 ?
12. Write a program in C++ to display the leap years of given range ?
13. Write a program in C++ to print the number until -1000 is given a input ?
14. Write a program in C++ to print the positive , negative and zero until -1000 is given a input ?
15. Write a program in C++ to count the positive , negative numbers and zero until -1000 is given a input ?
16. Write a program in C++ to sum of the positive , negative numbers until -1000 is given a input ?
17. Write a program in C++ to mean of the positive , negative numbers until -1000 is given a input ?
18. Write a program in C++ to factorial of given number until -1000 is given a input ?
Comparsion of numbers with for loops
19. Write a program in C++ to find biggest of ten numbers ?
20. Write a program in C++ to find smallest of ten numbers ?
21. Write a program in C++ to find biggest of N numbers ?
22. Write a program in C++ to find smallest of N numbers ?
23. Write a program in C++ to read and display 10 numbers using array ?
24. Write a program in C++ to read and display of N numbers using array ?
25. Write a program in C++ to find mean of ten numbers using array ?
26. Write a program in C++ to find mean of N numbers using array ?
27. Write a program in C++ to find the biggest of 10 numbers using array ?
28. Write a program in C++ to find the smallest of 10 numbers using array ?
29. Write a program in C++ to find the position of biggest number in the array ?
30. Write a program in C++ to find the position of smallest number in the array ?
31. Write a program in C++ to find the positions of biggest && smallest number in the array ?
32. Write a program in C++ to interchange the biggest&& smallest number in the array ?
33. Write a program in C++ to find the second biggest position of N numbers using array ?
34. Write a program in C++ to find the second smallest position of N numbers using array ?
35. Write a program in C++ to find the second biggest and smallest position of N numbers using array ?
36. Write a program in C++ to interchange the second biggest and smallest of N numbers using array ?
Matrix with for loops
37. Write a program in C++ to read and write 3x3 matrix ?
38. Write a program in C++ to read and display the transpose of 3x3 matrix ?
39. Write a program in C++ to find the sum of matrix ?
40. Write a program in C++ to find the product of two matrixes ?
41. Write a program in C++ to read and display MxN matrix ?
42. Write a program in C++ to read and display the transpose of MxN matrix ?
43. Write a program in C++ to sum of two MxN matrix ?
44. Write a program in C++ to product of two MxN matrix ?
Text Processing with for loops
45. Write a program in C++ to read the characters and display until $ is given ?
46. Write a program in C++ to read the characters and display ascii value until $ is given ?
47. Write a program in C++ to classify the character is upper or lower case until $ is given ?
48. Write a program in C++ to count the upper , lower , number and special characters until $ is given ?
49. Write a program in C++ to read and print a word ?
50. Write a program in C++ to read and print a sentence until . is given ?
51. Write a program in C++ to read a line until ?\n? is given ?
52. Write a program in C++ to read a text until ?$? is given ?
53. Write a program in C++ to count the number of characters in the input text ?
54. Write a program in C++ to count the number of words in the input text ?
55. Write a program in C++ to count the number of characters ,words and lines ?
56. Write a program in C++ to copy one array to another array ?
57. Write a program in C++ to copy the first N characters ?
58. Write a program in C++ to copy the N characters form M position onwards ?
59. Write a program in C++ to copy the last N characters ?
60. Write a program in C++ to copy upper to lower case ?
61. Write a program in C++ to copy lower to upper case ?
62. Write a program in C++ to replace by comma instead of semicolon; ?
63. Write a program in C++ to delete comma from the given string ?
64. Write a program in C++ to copy the reverse of the given string ?
65. Write a program in C++ to merge to arrays ?
66. Write a program in C++ to fortran to pascal statement ?
67. Write a program in C++ to pascal to fortran statement ?
68. Write a program in C++ to count the lines in the text ?
69. Write a program in C++ to print the first position of every line in the given text ?
70. Write a program in C++ to store the first position of every line in the given text in array ?
71. Write a program in C++ to print the M th line ?
72. Write a program in C++ to print the M th to N th line ?
Pattern Matching with for loops
73. Write a program in C++ to find out given pattern exist or not ?
74. Write a program in C++ to count the no of times occurs in given pattern ?
75. Write a program in C++ to delete the given pattern ?
76. Write a program in C++ to replace the given pattern ?
 
STRUCTURES Programs List
 
1. Write a program in C++ to read and display the bio-data and default inputs ?
2. Write a program in C++ to read and display the bio-data with inputs ?
3. Write a program in C++ to area of circle with input initialization ?
4. Write a program in C++ to area of circle with input ?
5. Write a program in C++ to find the biggest of three numbers using structure ?
6. Write a program in C++ to find the smallest of three numbers using structure ?
7. Write a program in C++ to read and display the bio-data using nested structure ?
8. Write a program in C++ to read and display the bio-data of 10 students using nested structure ?
9. Write a program in C++ to read and display the numbers using typedef ?
10. Write a program in C++ to read and display the bio-data using typedef ?
11. Write a program in C++ to read and display the bio-data using typedef (declaration structure) ?
12. Write a program in C++ to read and display the complete bio-data using typedef (declaration structure) ?
13. Write a program in C++ to read and display the complex number ?
14. Write a program in C++ to read and display the two complex number ?
15. Write a program in C++ to read and display the sum of two complex numbers ?
16. Write a program in C++ to read and display the difference of two complex numbers ?
17. Write a program in C++ to read and display a point of curve ?
18. Write a program in C++ to distance between two points ?
19. Write a program in C++ to read and display given number. ?
20. Write a program in C++ to read and display the DOB using bit field ?
 
FILES Programs List
 
1. Write a program in C++ to read a character one by one until $ is given ?
2. Write a program in C++ to display the text form file ?
3. Write a program in C++ to read and store the bio-data into file ?
4. Write a program in C++ to read the bio from file and print to screen ?
5. Write a program in C++ to read the biodata until $ is given for name ?
6. Write a program in C++ to read the bio from file and print to screen ?
Command Line Arguments with Files
7. Write a program in C++ to read the biodata until $ is given for name using command line arguments ?
8. Write a program in C++ to read the biodata from file using command line arguments ?
9. Write a program in C++ to read a character until $ is given using command line arguments ?
10. Write a program in C++ to display the text from file using command line arguments(cat command in unix) ?
11. Write a program in C++ to display the text from given files using command line arguments(cat all files command in unix) ?
12. Write a program in C++ to copy one file to another file using command line arguments(cp command in unix) ?
13. Write a program in C++ to merge two files ?
14. Write a program in C++ to copy and convert upper case letters into lower case ?
15. Write a program in C++ to encraph the given file ?
16. Write a program in C++ to decraph the given file ?
17. Write a program in C++ to copy the contents of array into file ?
18. Write a program in C++ to copy the file contents into array ?
19. Write a program in C++ to display line by line of the file contents with line number . ?
20. Write a program in C++ to display page by page of the file contents including line number. ?
21. Write a program in C++ to display line by line and count the no of upper and lower case letters and numbers ?
22. Write a program in C++ to count the no of upper and lower case letters and numbers in file. ?
23. Write a program in C++ to count the no of lines and words and characters in file ?
24. Write a program in C++ to count the given pattern using command line arguments. ?
25. Write a program in C++ to print the particular line when pattern is occurred using command line arguments.(grep command in unix: ) ?
26. Write a program in C++ to print the particular line with line number when pattern is occurred using command line arguments.(grep command in unix: ) ?
27. Write a program in C++ to print the particular line with line number when pattern is occurred using command line arguments in all files(Grep command in unix: ) ?
28. Write a program in C++ to print the particular line with line number when pattern dost not occur using command line arguments in all files ?
Union with Files
29. Write a program in C++ to read and store the bio-data into file ?
30. Write a program in C++ to read the bio-data from file and print it to the screen ?
31. Write a program in C++ to read the bio-datae and print it to the file until $ is given for name. ?
32. Write a program in C++ to read the bio-datae from file and print it to the screen until EOF is occur. ?
33. Write a program in C++ to read the bio-datae from file and calculate hra and da ?
Randon Access Files
34. Write a program in C++ to display the Nth recored ?
35. Write a program in C++ to display the payslip of Nth recored ?
36. Write a program in C++ to edit the nth record ?
Indexed Sequential Files
37. Write a program in C++ to read a biodata until record no is zero ?
38. Write a program in C++ to display the biodata for given record no ?
39. Write a program in C++ to display the pay slip for given record no. ?
40. Write a program in C++ to edit the n th record ?
 
FUNCTIONS Programs List
 
Numbers with Functions
1. Write a program in C++ to sum of two integer numbers with default arguments. ?
2. Write a program in C++ to sum of two integer numbers with inputs ?
3. Write a program in C++ to sum of two integer numbers with inputs and default arguments ?
4. Write a program in C++ to find the biggest of two integer numbers with default arguments ?
5. Write a program in C++ to find the Smallest of two integer numbers with inputs. ?
6. Write a program in C++ to find the smallest of two integer numbers using default arguments ?
7. Write a program in C++ to find the smallest of two integer numbers with inputs. ?
8. Write a program in C++ to find the area of circle ?
9. Write a program in C++ to find the volume of sphere ?
10. Write a program in C++ to find out the given number is even or odd. ?
11. Write a program in C++ to find out the given year is leap year or not. ?
12. Write a program in C++ to print the single digit number into words. ?
13. Write a program in C++ to print 11-19 range to words ?
14. Write a program in C++ to print the tens (10,20,..90) into words. ?
15. Write a program in C++ to print the limit 0-99 into words ?
16. Write a program in C++ to print the limit 0-999 into words ?
17. Write a program in C++ to read and print the ten numbers ?
18. Write a program in C++ to find out the biggest of ten numbers ?
19. Write a program in C++ to find out the smallest of ten numbers. ?
20. Write a program in C++ to find out the biggest and smallest of ten numbers. ?
21. Write a program in C++ to find out the index of biggest of ten numbers in array ?
22. Write a program in C++ to find out the index of smallest of ten numbers in array ?
23. Write a program in C++ to interchange the biggest and smallest of ten numbers. ?
24. Write a program in C++ to merge two arrays (array size is 10). ?
25. Write a program in C++ for ascending order of ten numbers ?
26. Write a program in C++ for descending order of ten numbers ?
27. Write a program in C++ to read and display of N numbers ?
28. Write a program in C++ to read and print the numbers which are odd and even ?
29. Write a program in C++ to find the average of N numbers ?
30. Write a program in C++ to read and print the reverse order ?
Matrix with Functions
31. Write a program in C++ to read and display a 3 x 3 Matrix ?
32. Write a program in C++ to transpose the 3 x 3 Matrix ?
33. Write a program in C++ to print the sum of two 3 x 3 Matrix. ?
34. Write a program in C++ to print the product of two 3 x 3 Matrix. ?
35. Write a program in C++ to read and display a N x N Matrix. ?
36. Write a program in C++ to transpose the N x N Matrix ?
37. Write a program in C++ to print the sum of two 3 x 3 Matrix. ?
38. Write a program in C++ to print the product of two N x N Matrix. ?
39. Write a program in C++ to read and display a M x N Matrix. ?
40. Write a program in C++ to transpose of M x N Matrix ?
41. Write a program in C++ to print the sum of two M x N Matrix. ?
42. Write a program in C++ to print the product of two M x N Matrix. ?
Text Processing with Functions
43. Write a program in C++ to read and print the text ?
44. Write a program in C++ to count the upper, lower, number and special character of given text ?
45. Write a program in C++ to count the no. of lines, words & characters of given text ?
46. Write a program in C++ to copy one array to another array ?
47. Write a program in C++ to merge the two arrays ?
48. Write a program in C++ to copy the left N Characters ?
49. Write a program in C++ to copy the N Characters from M th position onwards ?
50. Write a program in C++ to find the length of given text or array. ?
51. Write a program in C++ to copy the last N characters ?
52. Write a program in C++ to print the reverse of given array ?
53. Write a program in C++ to merge three arrays ?
54. Write a program in C++ to convert upper case to lower case letters ?
55. Write a program in C++ to convert lower case to upper case letters ?
56. Write a program in C++ to replace comma instead of semicolon ?
57. Write a program in C++ to replace semicolon instead of comma ?
58. Write a program in C++ to delete the comma in given string ?
59. Write a program in C++ to store the first position of every new line. ?
60. Write a program in C++ to print the Nth line ?
61. Write a program in C++ to print the Mth line to Nth line ?
62. Write a program in C++ to count the no of patterns exist on given string. ?
63. Write a program in C++ to delete the pattern ?
64. Write a program in C++ to replace the given pattern ?
Files with functions
65. Write a program in C++ to read text and store into file ?
66. Write a program in C++ to read text from file and print to screen ?
67. Write a program in C++ to cat all files. (cat command in unix) ?
68. Write a program in C++ to copy one file into another file (copy command) ?
69. Write a program in C++ to merge two files ?
70. Write a program in C++ to print the entire file using array ?
71. Write a program in C++ to print the entire file along the line number. ?
72. Write a program in C++ to print the entire file on page by page along the line number ?
73. Write a program in C++ to count the no of upper, lower and special charactes in the file ?
74. Write a program in C++ to count the no of lines, words and characters. ?
75. Write a program in C++ to count the given pattern into the file. ?
76. Write a program in C++ to grep command in linux. (Display the patten is occur or not) ?
77. Write a program in C++ to grep command in linux. (Display the line with number where is pattern is occurred ). ?
78. Write a program in C++ to grep all files command in linux. (Display the line number where is pattern is occurred ). ?
 
CLASSES Programs List
 
Numbers with Classes
1. Write a program in C++ to sum of two integer numbers ?
2. Write a program in C++ to sum of two integer numbers with assign inputs value on main ?
3. Write a program in C++ to sum of two integer numbers with passing arguments from main function ?
4. Write a program in C++ to all arithmetic operations of two integer numbers ?
5. Write a program in C++ to find the biggest of two integer numbers ?
6. Write a program in C++ to find the Smallest of two integer numbers ?
7. Write a program in C++ to find the area of circle ?
8. Write a program in C++ to find the volume of sphere ?
9. Write a program in C++ to find out the given number is even or odd. ?
10. Write a program in C++ to find out the given year is leap year or not. ?
11. Write a program in C++ to print the single digit number into words. ?
12. Write a program in C++ to print 11-19 range to words ?
13. Write a program in C++ to print the tens (10,20,..90) into words. ?
14. Write a program in C++ to print the limit 0-99 into words ?
15. Write a program in C++ to print the limit 0-999 into words ?
16. Write a program in C++ to read and print the ten numbers ?
17. Write a program in C++ to find out the biggest of ten numbers ?
18. Write a program in C++ to find out the smallest of ten numbers ?
19. Write a program in C++ to find out the biggest and smallest of ten numbers. ?
20. Write a program in C++ to find out the index of biggest of ten numbers in array ?
21. Write a program in C++ to find out the index of smallest of ten numbers in array ?
22. Write a program in C++ to interchange the biggest and smallest of ten numbers. ?
23. Write a program in C++ to merge two arrays (array size is 10). ?
24. Write a program in C++ to merge two arrays using separate objects ?
25. Write a program in C++ for ascending order of ten numbers ?
26. Write a program in C++ for descending order of ten numbers ?
27. Write a program in C++ to read and display of N numbers ?
28. Write a program in C++ to read and print the numbers which are odd and even ?
29. Write a program in C++ to find the average of N numbers ?
30. Write a program in C++ to read and print the reverse order ?
Matrix with Classes
31. Write a program in C++ to read and display a 3 x 3 Matrix ?
32. Write a program in C++ to transpose the 3 x 3 Matrix ?
33. Write a program in C++ to print the sum of two 3 x 3 Matrix ?
34. Write a program in C++ to print the product of two 3 x 3 Matrix. ?
35. Write a program in C++ to read and display a N x N Matrix ?
36. Write a program in C++ to transpose the N x N Matrix ?
37. Write a program in C++ to print the sum of two N x N Matrix. ?
38. Write a program in C++ to print the product of two N x N Matrix. ?
39. Write a program in C++ to read and display a M x N Matrix ?
40. Write a program in C++ to transpose of M x N Matrix ?
41. Write a program in C++ to print the sum of two M x N Matrix. ?
42. Write a program in C++ to print the product of two M x N Matrix. ?
Text Processing with Classes
43. Write a program in C++ to read and print the text ?
44. Write a program in C++ to count the upper, lower, number and special character of given text ?
45. Write a program in C++ to count the no. of lines, words & characters of given text ?
46. Write a program in C++ to copy one array to another array ?
47. Write a program in C++ to merge the two arrays ?
48. Write a program in C++ to copy the left N Characters ?
49. Write a program in C++ to copy the N Characters from M th position onwards ?
50. Write a program in C++ to find the length of given text or array ?
51. Write a program in C++ to copy the last N characters ?
52. Write a program in C++ to print the reverse of given array ?
53. Write a program in C++ to merge three arrays ?
54. Write a program in C++ to convert upper case to lower case letters ?
55. Write a program in C++ to convert lower case to upper case letters ?
56. Write a program in C++ to replace comma instead of semicolon ?
57. Write a program in C++ to replace semicolon instead of comma ?
58. Write a program in C++ to delete the comma in given string ?
59. Write a program in C++ to store the first position of every new line. ?
60. Write a program in C++ to print the Nth line ?
61. Write a program in C++ to print the Mth line to Nth line ?
62. Write a program in C++ to count the no of patterns exist on given string ?
63. Write a program in C++ to delete the pattern ?
64. Write a program in C++ to replace the given pattern ?
Files with Classes
65. Write a program in C++ to read text and store into file ?
66. Write a program in C++ to read text from file and print to screen ?
67. Write a program in C++ to cat all files. (cat command in unix) ?
68. Write a program in C++ to copy one file into another file (copy command) ?
69. Write a program in C++ to merge two files ?
70. Write a program in C++ to print the entire file using array ?
71. Write a program in C++ to print the entire file along the line number ?
72. Write a program in C++ to print the entire file on page by page along the line number ?
73. Write a program in C++ to count the no of upper, lower and special charactes in the file ?
74. Write a program in C++ to count the no of lines, words and characters ?
75. Write a program in C++ to count the given pattern into the file ?
76. Write a program in C++ to grep command in linux. (Display the patten is occur or not) ?
77. Write a program in C++ to read the biodata and store into file ?
78. Write a program in C++ to read the biodata from file and display into screen ?
79. Write a program in C++ to read the biodata until $ is given for name using command line arguments ?
80. Write a program in C++ to read the biodata from file using command line arguments ?
81. Write a program in C++ to read the bio-data from file and calculate hra and da ?
Constructors
82. Write a program in C++ to find the area of Circle without input ?
83. Write a program in C++ to find the area of Circle with passing input via constructor ?
84. Write a program in C++ to print the Fibonacci series using constructor ?
85. Write a program in C++ to initialize the biodata ?
Copy Constructors
86. write a program in C++ to read value and clone the object using copy constructor ?
87. write a program in C++ to clone the biodata using copy constructor ?
Destructor
88. Write a program in C++ to demonstrate destructor function. ?
Static Members
89. Write a program in C++ to demonstrate static members ?
90. Write a program in C++ to print factorial value of 1 to 15 using static members ?
Inline Functions
91. Write a program in C++ to read and display given number ?
92. Write a program in C++ to perform all arithmetic operations ?
Friend Functions
93. Write a program in C++ to read and display given number ?
94. Write a program in C++ to compare number value between two objects ?
 
INHERITANCE Programs List
 
Simple Inheritance
1. Write a program in C++ to sum of two integer numbers ?
2. Write a program in C++ to sum of two integer numbers with assign inputs value on main ?
3. Write a program in C++ to all arithmetic operations of two integer numbers ?
4. Write a program in C++ to find the biggest and smallest of two integer numbers ?
5. Write a program in C++ to find the area of circle and volume of sphere ?
6. Write a program in C++ to find out the biggest and smallest of ten numbers ?
Matrix with Single Inheritance
7. Write a program in C++ to transpose the 3 x 3 Matrix ?
8. Write a program in C++ to print the sum of two 3 x 3 Matrix ?
9. Write a program in C++ to print the product of two 3 x 3 Matrix ?
10. Write a program in C++ to transpose the N x N Matrix ?
11. Write a program in C++ to print the sum of two N x N Matrix ?
12. Write a program in C++ to print the product of two N x N Matrix ?
13. Write a program in C++ to transpose of M x N Matrix. ?
14. Write a program in C++ to print the sum of two M x N Matrix ?
15. Write a program in C++ to print the product of two M x N Matrix ?
Text Processing with Single Inheritance
16. Write a program in C++ to count the upper, lower, number and special character of given text ?
17. Write a program in C++ to count the no. of lines, words & characters of given text ?
18. Write a program in C++ to copy one array to another array ?
19. Write a program in C++ to count the no of patterns exist on given string ?
20. Write a program in C++ to delete the pattern ?
21. Write a program in C++ to read the bio data and height, weight info of empolyee ?
22. Write a program in C++ to read the bio data and height, weight info of 10 empolyees ?
23. Write a program in C++ to read the bio data and height, weight info 10 empolyees and store into file ?
24. Write a program in C++ to read the bio-data from file ?
25. Write a program in C++ to read the bio-data from file and calculate hra and da ?
Constructor with Inheritance
26. Write a program in C++ to find the area of triangle without input ?
Destructor with Inheritance
27. Write a program in C++ to demonstrate destructor function ?
Direct Base Class
28. Write a program in C++ to demonstration on inherits one direct base class. ?
29. Write a program in C++ to demonstration on inherits two direct base class ?
Indirect Base Class
30. Write a program in C++ to demonstration on inherits one indirect base class ?
31. Write a program in C++ to demonstration on inherits two indirect base class ?
Public Inheritance
32. Write a program in C++ to demonstration of public inheritance ?
Protected Inheritance
33. Write a program in C++ to demonstration of protected inheritance ?
Private Inheritance
34. Write a program in C++ to demonstration of private inheritance ?
Container Class
35. Write a program in C++ to demonstration of Container Class ?
 
OVERLOADING Programs List
 
Function Overloading with various data types
1. Write a program in C++ to interchange of two values of all data types ?
2. Write a program in C++ to find the sum of two numbers of all data types ?
3. Write a program in C++ to read and print the value of all data types ?
4. Write a program in C++ to find the square value of different data types ?
5. Write a program in C++ to find the sum of elements of 3 x 3 matrix of int and double numbers ?
6. Write a program in C++ to transpose of 3x3 matrix of int and double numbers ?
Function Overloading with different number of arguments
7. Write a program in C++ to find the sum of different no of arguments ?
8. Write a program in C++ to find the sum of square of given different no of arguments ?
9. Write a program in C++ to read and print the given different no of arguments ?
Operator Overloading with Assignment Operators
10. Write a program in C++ to overloading assignment operator. (Clone objects) ?
11. Write a program in C++ to find the sum of two objects ?
12. Write a program in C++ to perform all arithmetic operations ?
13. Write a program in C++ to perform all arithmetic operations of two complex numbers ?
Operator Overloading with Logical Operators
14. Write a program in C++ to perform all logical operations of two objects. ?
15. Write a program in C++ to print the numbers between 1 to 100 and 100 to 1. ?
16. Write a program in C++ to generate the Fibonacci series (length : 20) ?
 
TEMPLATES Programs List
 
1. Write a program in C++ to swaping two items of varius data types ?
2. Write a program in C++ to find the sum of array of integers and floats ?
3. Write a program in C++ to find the sum of two numbers of all data types ?
4. Write a program in C++ to read and print the value of all data types ?
5. Write a program in C++ to find the square value of different data types ?
6. Write a program in C++ to read and display values of all data types ?
7. Write a program in C++ to demonstrate templates with default constructor ?
8. Write a program in C++ to demonstrate templates with two arguments constructor ?
9. Write a program in C++ to demonstrate templates with constructor and destructor ?
10. Write a program in C++ to demonstrate exception handing of array declaration ?
11. Write a program in C++ to demonstrate exception handing of array declaration with class ?
 
 
 
 

Links :
Blog Roll :
   



Hosted by www.Geocities.ws

1