SuperMarket Billing System in C++

This mini project is written in C++ where you find mainly two classes one class item another class amount and class amount is inheritance form class item.It is simple console application without graphics. From this project you learn file handling in c++ and use of stream class.And main defect of this program is that goto label  is used to jump form one menu to…

Drawing Taj Mahal C++

Wonder of the World Drawing Taj Mahal C++ Code PROGRAM: #include<graphics.h> #include<conio.h> #include<dos.h> #include<stdlib.h> #include<process.h> main() { int gd=DETECT,gm; initgraph(&gd,&gm,”f:\tc\bgi”); int h=40; line(0,440,639,440); //=================================Ist tower========================// //=================================IIst tower============================// //#################TOWER%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%// int l=-20; line(28+l,400+h,33+l,333+h); line(86+l,400+h,80+l,333+h); //||||||||||||||||||||||||||||||Ist stage||||||||||||||||||||||||||||||||||||||||||||// line(23+l,328+h,32+l,334+h); // slant line(88+l,328+h,80+l,334+h); // slant line(83+l,323+h,75+l,334+h); // slant line(75+l,323+h,70+l,332+h); line(66+l,323+h,65+l,332+h); // slant line(57+l,323+h,57+l,332+h); // slant line(30+l,323+h,39+l,334+h); // slant line(38+l,323+h,45+l,332+h); line(48+l,323+h,51+l,332+h); // slant ellipse(57+l,320+h,350,190,34,5); ellipse(57+l,327+h,350,190,34,5); ellipse(57+l,337+h,0,180,25,5);…

Snake and Ladder Game C++

This code implements the classic game: Snake & Ladder. It can be played by two players. PROGRAM: #include<stdio.h> #include<graphics.h> #include<conio.h> #include<malloc.h> #include<stdlib.h> #include<dos.h> #include<iostream.h> int k=1, i, user=0, dice=0, x1=50, y1=410, x2=70, y2=410, dir1=0, dir2=0, ch; int cnt1=1, cnt2=1; void *obj1, *obj2, *o1, *o2, *dot, *back, *turn, *ready; unsigned int size; void ladder1() { int m,n; for(m=0;m<=250;m+=250) for(n=0;n<=m;n+=250) { setcolor(DARKGRAY);…

Simulation of Ethernet C++

Simulation of Ethernet This Simulation of Ethernet C Project is to simulate the Ethernet model explained in the class room. In this project, I was able to implement the interaction of Station-Process (SP) with the Communication Bus Process (CBP) through Socket programming. The SP is developed in C and the CBP is developed in C++. TCP is the transport protocol…

Tetris game C++

Following is program to make Tetris Game in C++ PROGRAM: #include <conio.h> #include <graphics.h> #include <dos.h> #include <stdlib.h> #include <process.h> #include <time.h> int score=0; void clear(); void main() { clrscr(); int b,a=DETECT; initgraph(&a,&b,” “); struct tetris { int rno[100]; int score; int rectl,rectu,rectr,rectd; int sql,squ,sqr,sqd; int ll,lu,lr,ld; int boxl,boxu,boxr,boxd; int l1l,l1u,l1r,l1d; int l2l,l2u,l2r,l2d; int block1l,block1u,block1r,block1d; int block2l,block2u,block2r,block2d; char ch; }t;…