Develop a library for
performing various Matrix operations. Use templates to make them generalized
for any data type.
Thursday, 4 April 2019
Wednesday, 3 April 2019
Saturday, 9 February 2019
Saturday, 2 February 2019
Dragon Game Google Chrome
Source Code:
#include<stdio.h>
#include<dos.h>
#include<stdlib.h>
#include<conio.h>
void getup()
{
textcolor(BLACK);
textbackground(15);
clrscr();
window(10,2,70,3);
cprintf("Press X to Exit, Press Space to Jump");
window(62,2,80,3);
cprintf("SCORE : ");
window(1,25,80,25);
for(int x=0;x<79;x++)
cprintf("ß");
textcolor(0);
}
int t,speed=40;
void ds(int jump=0)
{
static int a=1;
if(jump==0)
t=0;
else if(jump==2)
t--;
else t++;
window(2,15-t,18,25);
cprintf(" ");
cprintf(" ÜÛßÛÛÛÛÜ");
cprintf(" ÛÛÛÛÛÛÛÛ");
cprintf(" ÛÛÛÛÛßßß");
cprintf(" Û ÜÛÛÛÛßßß ");
cprintf(" ÛÛÜ ÜÛÛÛÛÛÛÜÜÜ ");
cprintf(" ßÛÛÛÛÛÛÛÛÛÛÛ ß ");
cprintf(" ßÛÛÛÛÛÛÛß ");
if(jump==1 || jump==2){
cprintf(" ÛÛß ßÛ ");
cprintf(" ÛÜ ÛÜ ");
}else if(a==1)
{
cprintf(" ßÛÛß ßßß ");
cprintf(" ÛÜ ");
a=2;
}
else if(a==2)
{
cprintf(" ßÛÜ ßÛ ");
cprintf(" ÛÜ ");
a=1;
}
cprintf(" ");
delay(speed);
}
void obj()
{
static int x=0,scr=0;
if(x==56 && t<4)
{
scr=0;
speed=40;
window(36,8,60,9);
cprintf("Game Over");
getch();
window(36,8,60,9);
cprintf(" ");
}
window(74-x,20,80-x,25);
cprintf("Û Û ");
cprintf("Û Û ");
cprintf("ÛÜÜÜÜÛ ");
cprintf(" Û ");
cprintf(" Û " );
x++;
if(x==73)
{
x=0;
scr++;
window(70,2,80,3);
cprintf(" ");
window(70,2,80,3);
cprintf("%d",scr);
if(speed>20)
speed--;
}
}
void main()
{
char ch;
int i;
getup();
while(1){
while(!kbhit())
{
ds();
obj();
}
ch=getch();
if(ch==' ')
{
for(i=0;i<10;i++)
{
ds(1);
obj();
}
for(i=0;i<10;i++)
{
ds(2);
obj();
}
}
else if (ch=='x')
return;
} //outer while
}
Friday, 25 January 2019
Tuesday, 15 January 2019
Saturday, 5 January 2019
Tuesday, 6 November 2018
Chess Game in C++. This can be used for 11th,12th and college Projects
CHESS Game In C++
This Program is totally based on chess game
this also includes virtual chess board
Source Code:
KBC Game in c Language. This code can be used for 11th , 12th and College Projects
KBC Game in C# Language
Program includes
Loading screen
Password screen
Otp screen
KBC Game Code
Source Code:
#include<conio.h>#include<stdio.h>
#include<string.h>
Thursday, 25 October 2018
Star Pattern in c/c++ programming
Normal And Reverse Star Pattern in C++
* *
** **
*** ***
********
source code:
* *
** **
*** ***
********
source code:
Thursday, 1 March 2018
Jio Sim Trick of getting 10GB Add on Data for free
Jio Sim Trick of getting 10GB Add on Data for free
Wednesday, 14 February 2018
Mine Sweeper Game in C
Mine Sweeper Game in c
Minesweeper is a single-player puzzle video game. The objective of the game is to clear a rectangular board containing hidden "mines" or bombs without detonating any of them, with help from clues about the number of neighboring mines in each field. The game originates from the 1960s, and has been written for many computing platforms in use today. It has many variations and offshoots.
SOURCE CODE
//Program password =Bhavesh
#include<conio.h>
#include<stdio.h>
#include<stdlib.h>
Saturday, 3 February 2018
PROGRAM TO PRINT THE LARGEST ELEMENT OF AN ARRAY
PROGRAM TO
PRINT THE LARGEST ELEMENT OF AN ARRAY
#include<iostream.h>
#include<stdlib.h>
Sunday, 29 October 2017
Tic Tac Toe Game IN C Language Download Source Code For Free...
Tic Tac Toe Game
Write a program that plays tic-tac-toe. The tic-tac-toe game is played on a 3x3 grid the game is played by two players, who take turns. The first player marks moves with a circle, the second with a cross. The player who has formed a horizontal, vertical, or diag-onal sequence of three marks wins. Your program should draw the game board, ask the user for the coordinates of the next mark, change the players after every successful move, and pronounce the winner. every successful move, and pronounce the winner.
SOURCE CODEMonday, 16 October 2017
C Program :- Write a program to find the number of and sum of all integer greater than 100 and less than 200 that are divisible by 5
/* Q. Write a program to find the number of and
sum of all integer greater than 100 and less than 200
that are divisible by 5 */
Monday, 24 July 2017
Program for passing structures to functions through call by value and call by reference.
PROGRAM
Program for passing structures to functions through call by value and call by reference.#include<iostream.h>
#include<conio.h>
#include<stdio.h>
Write a program to determine al Pythagorean triplets in the range 10 to 100. (A Pythagorean triplets is a set of three integers i, j, k such that i2+j2=k2)
PROGRAM
Write a program to determine al Pythagorean triplets in the range 10 to 100. (A Pythagorean triplets is a set of three integers i, j, k such that i2+j2=k2)#include <iostream.h>
#include <conio.h>
void main()
Program to find whether two strings contain equal number of characters.
PROGRAM
Program to find whether two strings contain equal number of characters.#include<iostream.h>
#include<string.h>
#include<conio.h>
int main()
Subscribe to:
Posts (Atom)