C++ Programming Code Examples
C++ > Computer Graphics Code Examples
Program to implement Circle Drawing Algorithm
Code Passing Array to Function using Call -
When we pass the address of an array while calling a function then this is called function call by reference. When we pass an address as an argument, the function declaration...
Program to Accept the Height of a Person -
Take the height of a person as input and store it in the variable height. If the variable height is lesser than 150 cm, then print the output as "Dwarf". If the variable height is lesser than...
C code format Time and Date into a string -
Abbreviated weekday name, Full weekday name, Abbreviated month name, Full month name, Standard date and time string, Last two digits of year, Day of month as a decimal
Checks Leap Year by Conditional Operator -
C Programming Language input a year and check whether year is leap year or not using conditional/ternary operator ?:. How to check leap year using conditional operator in C. If a
C Read and Write Strings gets() and puts() -
String is an 'Array of characters'. In this guide, we learn how to declare strings, how to work with strings in C language and how to use the 'pre-defined' string handling functions. String
C Program Find First N Fibonacci Numbers -
C Coding calculate the Fibonacci Numbers in the series. First two numbers in the Fibonacci sequence are 0, 1 & each subsequent number is the sum of the previous 2. Fn = Fn-1 + Fn-2
Code Find Sum of lower Triangular matrix -
C program to read elements in a matrix and find sum of lower triangular matrix. How to find sum of lower triangular matrix in C. Find sum of lower triangular matrix, we need to
Egg Game graphic programming code in C -
Go back to normal graphics mode or deleting viewport. Checking the egg position. Display mouse pointer. Define the upper left boundry of mouse. Define the bottom right boundry