C++ Programming Code Examples
C++ > Code Snippets Code Examples
String.find_first_of( substring )
The C Programming Pointers & 2D Arrays -
As we know that the one "Dimensional Array" name works as a pointer to the base element of the Array. However in the case "2D Arrays" the logic is slightly different. You can consider
Program Code Find Factorial of a Number -
Program to input a number and calculate its factorial using for loop. Factorial of a number n is product of all positive integers less than or equal to n. It is denoted as n!. ex. 5! = 120
C Check if the Matrix is an Identity Matrix -
C code checks a given Matrix is an Identity Matrix. Identity matrix is a square matrix with 1's along the diagonal from upper left to lower right and 0's in all other positions. If it
Concatenate 2 Strings C++ Without StrCat -
Program which take Two Strings as input and concatenate Two Strings without using string class function "strcat()". There are total three strings, two for 'input' and third for our Result
C program code insert an element in array -
Code insert an element in array at specified position. Insert element in an array at given position. The program should also print an error message if the insert position is invalid.
Built-in Data Types in C++ Programming -
Any programming language has built in data types. Data types are used to create variables or your new data types. Variable is a amount of memory that has its own name and value.
C Language & CPU Scheduling Algorithm -
C Program Checks if the mouse pointer is over the button. Checks whether count=1 so as to display the button on the new position for only once. Creates a box and the box is...
C Calculate the total Revenue and Output -
C Programming Choosing the correct type: long. Calculate quarterly total. Output monthly sales and total for the quarter. Calculate the total revenue and output it.