Skip to main content

Posts

Featured post

Bank Management System Project Using C Language

Recent posts

Snake-2

Snake-2 is a next version of my last snake-1 project. In Snake-2 simple graphics are used you would like. Program Code : #include <graphics.h> #include <stdlib.h> #include <dos.h> #include <conio.h> #include <stdio.h> #include <time.h> check(); end(); win(); int m[500],n[500],con=20,TEMP; clock_t start,stop; void main() { int gd=DETECT,gm,ch,maxx,maxy,x=13,y=14,p,q,spd=100; int a=0,i=0,j,t,temp; initgraph(&gd,&gm,"..\bgi"); setcolor(WHITE); settextstyle(3,0,6); outtextxy(20,2," SNAKE-2 by Akshay "); settextstyle(6,0,2); outtextxy(20,120," Use Arrow Keys To Direct The Snake "); outtextxy(20,140," Avoid The Head Of Snake Not To Hit Any Part Of Snake"); outtextxy(20,160," Pick The Beats Untill You Win The Game "); outtextxy(20,200," Press 'Esc' Anytime To Exit "); outtextxy(20,220," Press Any Key To Continue "); outtextxy(20,300," cprogrammingby

Car racing game project in Cpp

Car Racing Game in cpp : This is the new car racing game in turboc compiler with new and best graphics. you can take a new experience with this project you can copy paste the code in your project and run in turboc compiler. Car racing game project full code     Click to see the full code for car racing game  

Analog clock full code in cpp

Analog Clock code in turboc Program : #include<graphics.h> #include<conio.h> #include<stdio.h> #include<math.h> #include<dos.h> void main() { int gd=DETECT,gm; int x=320,y=240,r=200,i,h,m,s,thetamin,thetasec; struct  time t; char n[12][3]={"3","2","1","12","11","10","9","8","7","6","5","4"}; initgraph(&gd,&gm,"Akshay"); circle(x,y,210); setcolor(4); settextstyle(4,0,5); for(i=0;i<12;i++) { if(i!=3) outtextxy(x+(r-14)*cos(M_PI/6*i)-10,y-(r-14)*sin(M_PI/6*i)-26,n[i]); else outtextxy(x+(r-14)*cos(M_PI/6*i)-20,y-(r-14)*sin(M_PI/6*i)-26,n[i]); } gettime(&t); printf("The current time is: %2d:%02d:%02d.%02d",t.ti_hour, t.ti_min,t.ti_sec, t.ti_hund); printf("\ncprogrammingbyakshay.blogspot.in"); while(!kbhit()) { setcolor(5); setfillstyle(1,5); circle(x,y,10); floodfill(x,y,5); gettime(&am

Minesweeper Game in C

Minesweeper Game in C language. This game is like a windows minesweeper game and I am giving you all the code for this game. You can easily understand the code if you are not a beginner. For beginners this code will quite hard to understand. Because in this code it contains mouse pointing function, graphics function, and so many other codes which makes it so hard to play and is a mind game. So play and enjoy it.   Click here for code Click for code

Make your own paint application in c and cpp

Paint application using simple turboc complier. Hello friends now make your own paint application or mini project in your simple c and cpp compiler. click to show the code for paint program

Draw House in c and cpp programming with graphics

Draw House in your c compiler with graphics. You can implement this source code on c compiler this code is very simple made up with some easy command like:  Delay, Setcolor, Line, Arc. initgraph function initializes graphics on the main program. initgraph(&gdriver,&gmode,"c:\\turboc3\\bgi"); & points to the address of Graphics drive and Graphics mode defined by gdrive and gmode, you can change these strings with your own string like: gd as short of gdrive. And gdrive also having a function named as DETECT , used to detect the modes and graphics code over the program. Code : #include<iostream.h> #include<conio.h> #include<graphics.h> #include<dos.h> void dda( float xa, float ya, float xb, float yb); void main() { clrscr(); int gdriver=DETECT,gmode; initgraph(&gdriver,&gmode,"c:\\turboc3\\bgi"); for(int i=16;i>=14; i--) { delay(900); setcolor(i); line(216,110,410,110); } for(int i1=16;i1>=14;