Skip to main content

Posts

Showing posts with the label PROJECTS

The lower bound algorithm returns the first location in the sequence that value

The lower bound algorithm returns the first location in the sequence that value lower_bound Header <algorithm> template<class ForwardIterator, class T> inline ForwardIterator lower_bound(ForwardIterator first, ForwardIterator last, const T& value) The lower_bound algorithm returns the first location in the sequence that value can be inserted such that the order of the sequence is maintained. lower_bound returns an iterator positioned at the location that value can be inserted in the range [first..last), or returns last if no such position exists. lower_bound assumes the range [first..last) is sorted using operator<. template<class ForwardIterator, class T, class Compare> inline ForwardIterator lower_bound(ForwardIterator first, ForwardIterator last, const T& value, Compare compare) The lower_bound algorithm returns the first location in the sequence that value can be inserted such that the order of the sequence is maintained. lower_bound...

Tower of Hanoi - A Graphical Representation

Download Now :- Tower of Hanoi // [ You can use more than 10 Disks too, just change the value of MAX ] // #include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> #define MAX 12 #define BegPos   105 #define AuxPos   305 #define EndPos   505

Accessing SQL Server from C++

Download Now :- Accessing SQL Server from C++ Accessing SQL Server from C++ #define DBNTWIN32 #include <stdio.h> #include <windows.h> #include <sqlfront.h> #include <sqldb.h> // Forward declarations of the error handler and message handler.  int err_handler(PDBPROCESS, INT, INT, INT, LPCSTR, LPCSTR); int msg_handler(PDBPROCESS, DBINT, INT, INT, LPCSTR, LPCSTR, LPCSTR, DBUSMALLINT); main() {    PDBPROCESS dbproc; // The connection with SQL Server.     PLOGINREC login; // The login information.     DBCHAR name[100];    DBCHAR city[100];

Diabetes Detection Project

Download Now :-   Diabetes detection #include<iostream.h> #include<stdio.h> #include<conio.h> #include<ctype.h> #include<dos.h> #include<graphics.h> #include<process.h> class diabetes { private: char name[40]; float age; int wt; float ht; char sex; char *s; public: void welcome_screen(void); void getvalue(void); void getlevel1_symptoms(void); void getlevel2_symptoms(void); void getlevel3_symptoms(void); int analyse_symptoms(int); char display_message(int,int); };

Rotation of triangle

Downloda Now :- Rotation_of_triangle #include<stdio.h> #include<iostream.h> #include<dos.h> #include<process.h> #include<conio.h> #include<graphics.h> #include<math.h> //void render(float,float,float, float,float,float, float,float,float,float,float,float); void initialize(void); void firstpage(void); void call_first(void); float intensity,alpha,thita,tempy,tempz,tempx; char ch=’4'; char ch1=’1'; char ch2=’1'; int pts1[5][3]; float tx,ty,tz,d=.5; void assign(float,float,float,float,float,float,float,float,float); void scan_line(float,float,float,float,float,float,float,float,float); void drawpyramid(float,float,float,float,float,float); void call_assign(void); void display(void); void tranform(void); void draw(void); void drawscale(void);

Stack Data structure implementation

Download Now :-  static_data_structure #include <iostream> #include <new> #include <string> #include <sstream> using namespace std; #if !defined __STACK_H #define __STACK_H namespace stk{ class Stack{ private: int *p; int top,length; string str()const; public: Stack(); Stack(const int); Stack(const Stack&); ~Stack(); void push(int); int pop(); int get_length()const; bool is_empty()const; Stack operator=(const Stack&); friend ostream& operator<<(ostream&,Stack&);

Multiply two matrices using dynamic memory allocation in c language

#include<stdio.h> #include<stdlib.h> void main() { int **ap,**bp,**cp,sum=0; int m,n,i,j,k; printf("\nEnter m and n for mXn matrix :"); scanf("%d%d",&m,&n); ap=(int**)malloc(sizeof(int)*m); for(i=0;i<n;i++) ap[i]=(int*)malloc(n*sizeof(int)); bp=(int**)malloc(sizeof(int)*m); for(i=0;i<n;i++) bp[i]=(int*)malloc(sizeof(int)*n); cp=(int**)malloc(sizeof(int)*m); for(i=0;i<n;i++) cp[i]=(int*)malloc(sizeof(int)*n); printf("\nEnter %d elements of matrix A :",m*n); for(i=0;i<m;i++) { for(j=0;j<n;j++) scanf("%d",&ap[i][j]); } printf("\nEnter %d elements of matrix B :",m*n); for(i=0;i<m;i++) { for(j=0;j<n;j++) scanf("%d",&bp[i][j]); } printf("\nMatrix A :\n"); for(i=0;i<m;i++) { for(j=0;j<n;j++) { printf("%d\t",ap[i][j]); } printf("\n"); }

Moving Ball Screensaver

Download Now :- Moving Ball Screensaver #include”graphics.h” #include”dos.h” #include”conio.h” #include”stdlib.h” #define DELAY 1 #define SOUND 3500 void state(int x,int y,int mode); int i; void *ptr1[4],*ptr2[4]; /* 3d Ball */ char ball[20][20]= { {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}, {0,0,0,0,0,0,12,12,12,12,12,12,12,12,0,0,0,0,0,0}, {0,0,0,0,12,12,12,12,12,12,12,12,12,12,12,12,0,0}, {0,0,0,12,12,12,12,12,12,12,12,12,12,12,12,12,12,0,0,0}, {0,0,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,0,0}, {0,0,12,12,12,12,12,15,15,12,12,12,12,12,12,12,12,12,0,0}, {0,12,12,12,12,12,15,12,12,12,12,12,12,12,12,12,12,12,12,0}, {0,12,12,12,12,15,12,12,12,12,12,12,12,12,12,12,12,12,12,0}, {0,12,12,12,15,15,12,12,12,12,12,12,12,12,12,12,12,12,12,0}, {0,12,12,12,15,15,12,12,12,12,12,12,12,12,12,12,12,12,12,0}, {0,12,12,12,15,15,12,12,12,12,12,12,12,12,12,12,12,12,12,0}, {0,12,12,12,12,15,12,12,12,12,12,12,12,12,12,12,12,12,12,0}, {0,12,12,12,12,12,12,12,12,12,12,12,1...

Matrix Calculator

Downloda Now :-  Matrix Calculator #include<process.h> #include<graphics.h> #include<iostream.h> #include<dos.h> #include<math.h> #include<stdio.h> #include<string.h> #include<conio.h> class Border { public: void body(void); }; class Screen { public: void screen(void); }; class Output:public Screen { public: void Text(char *); void Number(double); }; class Button { public: void button_u(int,int,int,int,int,int,char*); void button_p(int,int,int,int,int,int,char*); };

Sudoku completer

Download Now :-  Sudoku_completer #include <iostream> #include <fstream> #include <string> using namespace std; int Sudoku[9][9][10]; //the actual sudoku int backupSudoku[9][9][10]; //used for making a copy of the actual sudoku

wireless patient pulse rate and temperature tracking system

C mini projects download in wireless patient pulse rate and temperature tracking system. This is a simple project in C source code. This code can be used in MCA and engineering mini projects. Download Now :-   wireless patient pulse rate an Wireless patient Pulse rate and Temperature tracking using C

Simulation of the Ethernet C Project

Download Links :- http://www.4shared.com/file/COEVNAZ1/cbp.html http://www.4shared.com/office/RlTAooUV/data.html http://www.4shared.com/office/m6d563Lk/f-10-p.html http://www.4shared.com/office/zNz9v5wH/simulation-of-the-ethernet-c-p.html http://www.4shared.com/file/sZqNjBr-/stationprocess.html Readme File: For compiling and executing the project, below are the commands: Compile CBP file: g++ -pthread cbp.cpp Execute: ./a.out 7000   (we can use any port number instead of 7000 here) Compiling SP file: gcc  stationprocess.c Execute: ./a.out  cbpname cbp_port-no file_requested Eg:          ./a.out cbp 7000 data.txt To view output: vi slogfile Simulation Results: g++ -pthread cbp.cpp ./a.out 7000 Socket created 4 Socket binded Waiting for data on port…. gcc  stationprocess.c ./a.out cbp 7000 data.txt Host not foundRead 28 bytes that are [void bal(float amount);  ] ...

Virus Joke

Download Now :-  Fools Joke text #include<iostream.h> #include<conio.h> #include<dos.h> #include<stdio.h> #include<process.h> #include<graphics.h> #include<fstream.h> void ffool();               //FUNCTION WHICH GIVES THE FINAL MESSAGE

Generic Stack Class

Download Now :-  Generic_Stack_Class #include <iostream.h> #include <new.h> #include <string.h> #include <sstream.h> using namespace std; #if !defined __STACK_H #define __STACK_H namespace stk{ template<class T> class Stack; // Forward declaration of Stack class for overloaded << operator template<class T> ostream& operator<<(ostream &,Stack<T> &); // template declaration of << operator template<class T> class Stack{ private : T *p; int top,length; string str()const; public: Stack(); Stack(const int); Stack(const Stack<T>&); ~Stack(); void push(T); T pop(); int get_length()const; bool is_empty()const; Stack<T> operator=(const Stack<T>&); // only for basic types friend  ostream& operator<< <>(ostream&,Stack<T> &); class StackException{ private: string desc; public: StackException(string exp){ desc...

C++ Project on Telephone Directory

Download Now :- Telephone_Directory #include<iostream .h> #include<fstream .h> #include<iomanip .h> #include<string .h> #include<stdlib .h> #include<conio .h> #include<stdio .h> #include<iomanip .h> #include<graphics .h> #include<dos .h> class stud { public: char name[20]; char address[20]; unsigned int ph_no; void get(void); void show(void); void modify(void); }; void stud::get(void) { int i=0; cout<”; cin.get(name[i]); while(name[i]!=’n’) { i=i+1; cin.get(name[i]); } cin.getline(name,20,’n’); cout<”; cin.getline(address,20,’n’); fflush(stdin); cout<t”; cin>>ph_no; fflush(stdin); }

Digital Clock C++ Project

Download Now :- Digital_Clock_C_Project #include<iostream.h> #include<stdio.h> #include<conio.h> #include<graphics.h> #include<dos.h> #include<stdlib.h> #define DOTCOLOR 14 #define DIGCOLOR 5 void disp(); void ELLIPS(); class Digital_Clock { private: int X,Y; int SIZE; int COLOR; int HEIGHT,WIDTH; void *VER,*HOR; public: int style; Digital_Clock(); Digital_Clock(int s,int c,int st); void bar_make(); void PutDig(int x,int y,int n); void DrawDig(int x,int y,int n); ~Digital_Clock(); }; Digital_Clock::Digital_Clock() { style=1; SIZE=1; HEIGHT=1; WIDTH=12; COLOR=15; bar_make(); } Digital_Clock::Digital_Clock(int s,int c,int st) { style=st; SIZE=s; COLOR=c; HEIGHT=1; WIDTH=6; bar_make(); } void Digital_Clock::bar_make() { int x,y,w,h; int area; x=10; y=getmaxy()/2; w=WIDTH*SIZE; h=HEIGHT*SIZE; setfillstyle(style,COLOR); bar(x+h,y,x+w-h,y+h); setcolor(COLOR); line(x,y+h/2,x+h,y); line(x,y+h/2,x+h...

C++ Project for Graphic scientific Calculator

#include<stdio.h> #include<conio.h> #include<process.h> #include<dos.h> #include<stdlib.h> #include<iostream.h> #include<graphics.h> #include<math.h> #include<string.h> float *mem; int X=0, Y=0; int row=17,col=5; char dummy; char flag=’d',flagp=’0'; char bflag=’u',bflagp=’u'; int mflag=0; char ch,ch1,ch2; int sflag=0; int midx,midy; # define UNCLICKED 0 # define CLICKED 1 # define PI 3.14159 unsigned long factorial(int n); //unsigned long permutation(int); //unsigned long combination(int); char str1[]={“Gaurav Koley, Manoj Soni & Aman Sharma”}; void typeit (int x,int y,int spacing,char string[]) { char temp[2]; for (int i=0;i<strlen(string);i++) { delay(100); temp[0]=string[i]; temp[1]=’'; outtextxy(x+(i+1)*spacing,y,temp); }//endfor } void front() { int x,y,h; for(x=0;x<=100;x++) { settextjustify(CENTER_TEXT,CENTER_TEXT); setcolor(1); settextstyle(1,0,4); ...

Reslt Managment Project Coding

////////////////Created By C++ PRogramming//////////////////////// #include<conio.h> #include<process.h> #include<fstream.h> #include<string.h> #include<stdio.h> #include<dos.h> // CLASS NAMED 'STUDENT' TO CALCULATE GRADE,TOTAL AND PERCANTAGE // class student { private: public: char grade(long int x,int y); long int total(int a,int b,int c,int d,int e); float percent(long int z); }; char student::grade(long int x,int y) { // FUNCTION TO CALCULATE GRADE // if((x*100/y)>74) return('A'); else { if((x*100/y)>60) return('B'); else { if((x*100/y)>33) return('C'); else return('E'); } } } long int student::total(int a,int b,int c,int d,int e) { // FUNCTION TO CALCULATE TOTAL MARKS // int t; t=(a+b+c+d+e); return (t); } float student::percent(long int z) { // FUNCTION TO CALCULATE PERCANTAGE // float p=0; p=(z*100)/500; return(p); }

Balloon Shooting Games

Just to tell you  its a very hard program to make with out error # include "graphics.h" # include "conio.h" # include "stdio.h" # include "stdlib.h" # include "dos.h" #define ARROW_SIZE 7 #define BALLOON_SIZE 3 // Downloaded from www.indiaexam.in int flag_arrow=0,flag_balloon=1,count_arrow=6,count_balloon=10; void *balloon,*bow,*arrow,*burst; void *clear_balloon,*clear_burst; void draw_balloon(int ,int ); void draw_burst ( int x, int y ); void draw_bow(int x,int y); void draw_arrow(int x, int y); void shoot(int *x, int *y); int testkeys(); void fly(int *x, int *y); void start(); void main() { int gmode = DETECT, gdriver , area ; initgraph ( &gmode, &gdriver, "c:\tc\bgi\ " ) ; setbkcolor(1); start(); int maxx = getmaxx() ; int maxy = getmaxy() ; int p=400,q=300,m=100,n=100,x=m,y=n,key,score=0,finish=0,level=1,l_flag=1; char score1[5],ch,cnt_ball[5],char_level[2]; rectangle ( 0, 0, maxx...

A program to make Resume

#include<fstream.h> #include<string.h> #include<stdio.h> #include<conio.h> #include<process.h> int main() { char name[30],file[30],*blank=”.html”; char temp[200],ch; int num=0,len,i,line=1; cout<<”Enter Name Of The Database : “; gets(name); strcpy(file,name); strcat(file,blank); ofstream fout(file); if(!fout) { cout<<” Error In Making Of A File :”; exit(1); } fout<<”<html> “; fout<<”<blockqoute>”; fout<<”<center> “; fout<<”<b><h1><u>”<<”CURRICULAM VITAE”<<”</h1></b></u> “; fout<<”</center> “; cout<<” Enter Your Name : “; gets(temp); strcpy(name,temp); fout<<”<br><h2>”<<temp<<”<br> “; cout<<” Enter Your Address : “; gets(temp); len=strlen(temp); for(i=0;i<len;i++) { ch=temp[i]; if(ch==’ ‘) { num++; if(num==3) { fout<<”<br>”; num=0; ...