Happy Codings - Programming Code Examples
Html Css Web Design Sample Codes CPlusPlus Programming Sample Codes JavaScript Programming Sample Codes C Programming Sample Codes CSharp Programming Sample Codes Java Programming Sample Codes Php Programming Sample Codes Visual Basic Programming Sample Codes


C++ Programming Code Examples

C++ > Algorithms Code Examples

Info person





Code print the address of array elements - For loop to print value and address of each element of array. Just to demonstrate that the array elements are stored in contiguous locations, I am displaying the addresses in...

Concatenate 2 Strings without using strcat - In the following program user would be asked to enter 'two Strings' and then the C program would 'concatenate them'. For concatenation we have not used the standard library strcat()

C Code Find Armstrong Numbers in Range - Logic to find all Armstrong number between 1 to n. Input Upper Limit to print Armstrong number from user. Store it in some variable say end. Run a loop from 1 to end, increment

C++ Codes Store Information of a Student - In this C++ program, a "structure" (student) is created which contains name, roll and marks as its 'data member'. A structure variable(s) is created. Then, data (name, roll and marks) is

C++ Generate Different Random Numbers - To generate random numbers in C++, use the function rand() to generate and print random numbers. So If you want to generate different different random numbers at each time when

Printing 100 Ramanujan Numbers 2 Ways - C++ Sample code Print first 100 "Ramanujan Numbers" by TWO WAYS 1st way is printing ramunajan numbers from RN taking RN from 0 to INFINITY & print first 100 numbers. 2nd

Calculate Addition or Subtraction & Trace - Calculate the addition or subtraction & trace of 2 matrices. Here trace of the matrix is the sum of the elements on the main diagonal i.e the diagonal from the upper left to the lower

Program to Create Your Own Header File - Program to create your own header file in c programming. Write only function definition as you write in c program. Save above code with extension. Let name of our header file