C Programming Code Examples
C > Games and Graphics Code Examples
Egg Game in C
Program to Converts Celsius to Fahrenheit -
Fahrenheit & Celsius are two unit for measure temperature. Formula to convert "Celsius" to Fahrenheit using this formula you can change temperature fahrenheit to celsius. Use temp
Implement Find all Cross Edges in a Graph -
This C++ program, "using recursion", displays the number of cross edges in a graph. A cross edge is one in which a node points to another node which has already been fully visited. Int
Use The KMP Pattern Searching Algorithm -
Program performs a Pattern Searching using "KMP" 'Pattern Searching Algorithm'. Pattern searching is used for Finding the Existence of a Substring in a String. The pattern searching
Program Sample Displays Prime Numbers -
If a number passed to checkPrimeNumber() is a Prime Number, this function returns true, if not the Function returns false. If enters larger number first, 'code' will not work as intended.
Call Simple Programs for Functions in C++ -
A function is like a black box. It takes in input, does something with it, and then spits out an answer. We have some "terminology" to refer to functions: A function, call it f, and that uses
C++ Simple Calculator Code for Beginners -
Write a simple C++ program which have four different functions for "basic operations" like addition, subtraction, division, multiplication. It should be menu based asking user to enter
C Analogue Clock create and Display Time -
Record the time program starts execution. Record the current time, using the alternate method of. Convert the time_t value into a type tm structure. Create and display a string
Code find power of number using for loop -
C program to find power of a number using for loop. Input base and exponents from user. Store it in two variables say base and expo. Declare & initialize another variable to store