Skip to main content

Posts

Bank Management System Project Using C Language

The source code for the Bank Management System for Customer Accounts is reasonably short and simple to comprehend. This C mini project is separated into many functions, most of which are connected to various financial operations. Some of the most critical functionalities are listed below to assist you better understand the project. menu()  – This function shows a menu or welcome screen that allows you to execute the various banking tasks listed below. new acc()  – Creates a new customer account using this function. It requests the customer's name, date of birth, citizenship number, address, and phone number, among other personal and financial information. You may pick from a variety of deposit accounts, including savings, current, fixed for 1 year, fixed for 2 years, and fixed for 3 years. view list()  – Displays a list of items. This feature allows you to access the customer's banking information, including the account number, name, address, and phone number supplied wh...

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(...

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; ...

Rattle Snake Game

Rattle Snake Game in C and C++ Hello friends this is a simple projects on snake game. It is simply different from my first snake warz game. You can run this game in DOS BOX and TURBOC compilers. copy this code in your file... //Rattle Snake - A excellent snake game developed in c/c++. #include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #include <dos.h> #include <iostream.h> #include <fstream.h> #include <string.h> int main() {    int gdriver = DETECT, gmode, errorcode;    void *body,*food,*tail1,*tail2,*tail3,*tail4,*head1,*head2,*head3,*head4;    int x, y,X[5000],Y[5000],i=3, maxx,maxy,speed=100,bo=10,t[10],score=0,hscore=20;    unsigned int size;    char a='6',b,scor[4],hs[4];    int k=2,l,r1,r2,f=0,z=100,first=0,second=1;;    r1=300;    r2=350;    ifstream infile("c:\tc\bin\rattle.txt...

Balloon Shooting game in cpp

Balloon Shooting Game is a simple game using c and cpp features. You can easily learn and is easy to run because this game works in TURBOC compiler. The main features are included is  GRAPHICS and DOS commands. Basic commands used in this game : initgraph : initgraph is used to initialising of graphics mode in the program.                   ex. initgraph(&gm,&gd,"akshay"); here gm uses Graphics detect mode and gd points to graphics features to be used in program ans last is a string it may be any string like c://tc/bin etc.. setbkcolor : sets the current background color.    for ex. if you want to set background color to blue, you can call   setbkcolor(BLUE); or setbkcolor(1); getimage : saves a bit image of the specified region into memory. putimage : outputs a bit image onto the screen. settextstyle : sets the current text characteristics.     Declaration : settextstyle(int font,...

How to make Antivirus In C++

Hello friends this article to the programmers who wants to makes some intresting softwares and there own applications like this antivirus program ...This antivirus program is for beginners and easy to understand.... lets come to learn Focus Points The main points behind searching an virus is identify the structure of the virus file. Step1 : Get a list of file folders that includes to scan. Step2 : Scan them one by one using char sample would be tagged as "Infected". Step3 : Delete this virus file, in case when u find them. In coding phase first u have to learn file handling and the new concept is system command. system command : executes dos commands within c++ program. It currently works to include sub directiories in the file. for coding goto :  Antivirus coding

Printf within Printf

Hello friends today I am sharing new concept of printf within printf. In this concept one printf demonstrating an other printf. Rule : Inner printf returns Length of string printed on screen to the outer printf   Printf inside printf in C : Example #include<stdio.h> #include<conio.h> void main() { int num=1342; clrscr(); printf("%d",printf("%d",printf("%d",num))); getch(); }   Output : 134241 Know How ? Firstly Inner printf is executed which results in printing 1324  This Printf Returns total number of Digits i.e  4 and second inner printf will looks like printf("%d",printf("%d",4)); It prints 4 and Returns the total number of digits i.e 1 ( 4 is single digit number ) printf("%d",1); It prints simply 1 and output will looks like 132441

PIANO Programming in c

Piono program output click to see the coding of piano programming

How to Create own header file

Hello Friends this is Akshay and today i m sharing a new concept to create own header file in C like #include < stdio.h > so lets start to know how to create new header file... follow these steps...  Step1: Open turboc compiler and click to new.  Step2: Enter your own command lines as possibles and save it as your_name.h. Close turbo compiler. step3: And after saving goto in the turboc folder find bin folder and then your_name.h.  turboc > bin > your_name.h step4: Copy this file to include folder in turboc... turboc > include > your_name.h step5: Open tubroc compiler then use your own header file name.   happy coding...☺

Secret to learn programming easily

Hard problems become easier by working through them with diagrams, effort and patienceIn other words, don't just wait for answers to come to you--go out and find them. Don't just use what's in your head--use paper, or the computer, or a whiteboard, todraw out the ideas, try experiments, make the patternsvisiblerather than waiting for a flash of insight.I remember really learning this lesson during the first problem set--I'd started it when it was handed out, but the night before it was due I still had one problem left. I spent hours on that problem, but I spent it drawing out equations, working through possibilities. Each one ended in failure, until I had a flash of insight in the middle of writing out an equation. If I hadn't worked through (and discarded) all those possibilities, I'd have had no hope of solving that problem.So how do you apply this principle in practice?Program Program ProgramIf you're learning to program, you should be programming. Workp...

8 Common Programming Mistakes

8 Common Programming Mistakes Learning to program can be tough--just ask anyone who's done it! Fortunately, a lot of problems happen over and over again--I've put together 8 of the most common problems that you'll run into as a new programmer. 1. Undeclared Variables int main() { cin>>x; cout< >x; cout< >a; cin>>b; cout<<"The sum is: "< >b; cin>>a; sum=a+b; cout<<"The sum is: "< >x; "Why doesn't my loop ever end?" If you use a single equal sign to check equality, your program will instead assign the value on the right side of the expression to the variable on the left hand side, and the result of this statement is the value assigned. In this case, the value is 'Y', which is treated as true. Therefore, the loop will never end. Use == to check for equality; furthermore, to avoid accidental assignment, put variables on the right hand side of the expression and you'll get...

Moving car

// moving car animation #include #include void main() { int gd=DETECT,gm; int i ,j=0; initgraph(&gd,&gm,"akshay"); settextstyle(GOTHIC_FONT,HORIZ_DIR,4); getch(); i=0; while(i<=420) { rectangle(150+i,350,200+i,400); rectangle(50+i,275,150+i,400); circle(175+i,410,10); circle(75+i,410,10); setcolor(j++); delay(100); i=i+10; cleardevice(); } getch(); closegraph(); }

Mouse programming within a window

click to see the coding of mouse programming within a window

Mouse Programming

click to see mouse programming

snake game

click to see the coding of snake game                 click to see the snake game coding