Posts

STUDEN RECORD MANAGEMENT SYSTEM IN CPP

Image
 STUDEN RECORD MANAGEMENT SYSTEM IN CPP Source Code: #include<iostream> #include<fstream> #include<iomanip> using namespace std; class student { private:     int rno;     char name[50];     int enno;     float marks; public:     void getdata()     {         cout<<"\t\t\t\t\t Please Enter Student Details :"<<endl;         cout<<"\n\n\nEnter The Roll Number of the student: ";         cin>>rno;         cout<<"\nEnter student's Name: ";         cin.ignore();         cin.getline(name,50);         cout<<"\nEnter The Enrollment Number of the student: ";         cin>>enno;         cout<<"\nEnter The Marks of the student in Previous Year: ";         cin>>marks; ...

India map in C Language

 India map in C Language code: #include <stdio.h> int main() {     int a,b,c;     int count = 1;     for (b=c=10;a="- FIGURE?, UMKC,XYZHello Folks,\     TFy!QJu ROo TNn(ROo)SLq SLq ULo+\     UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\     NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\     HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\     T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\     Hq!WFs XDt!" [b+++21]; )     for(; a-- > 64 ; )     putchar ( ++c=='Z' ? c = c/ 9:33^b&1);     return 0; } Subscribe the code.circle

Addition And Multiplication of polynomials using link list

Code : #include<stdio.h> #include<conio.h> #include<stdlib.h> struct node {     int coef;     int exp;     struct node *link; }; void insert_term(struct node **,int,int); void traverse(struct node *); void poly_add(struct node **,struct node **,struct node **); void poly_pdt(struct node **,struct node **,struct node **); void main() {     struct node *start_p=NULL,*start_q=NULL,*start_r=NULL;     int i,n,c,e;     printf("Enter first polynomial!\n");     printf("Enter no of terms:");     scanf("%d",&n);     for(i=0; i<n; i++)     {         printf("Enter coefficient: ");         scanf("%d",&c);         printf("Enter exponent: ");         scanf("%d",&e);         insert_term(&start_p,c,e);     }     printf("Enter second polynomial!\n"); ...

Vehicle Parking System in CPP

Code:  #include<iostream> #include<process.h> #include<stdlib.h> using namespace std; class Parking                       //CPP Features used classes and objects { protected: int amount; int Count; int two,three,four; public: Parking()                       //CPP Features used constructor { amount=0; Count=0; two=0; three=0; four=0; } void Delet() { amount=0; Count=0; two=0; three=0; four=0; cout<<"**************************************************"<<endl; cout<<"All Record deleted......."<<endl; cout<<"**************************************************"<<endl; } }; class TwoWheel:virtual public Parking           //CPP Features used hirarchicale inheritance used in this project { public:     void t_wheel() ...

Ludo In CPP

Image
Ludo In CPP code:   #include<iostream.h> #include<graphics.h> #include<conio.h> #include<stdlib.h> #include<dos.h> #include<time.h> static int csc=0;//static variable for counting 3 consecutive 6 //class for storing coordinates of circles where players will move class Position { private: int x,y; public: void setcoord(int x,int y){ this->x=x; this->y=y; } void display(int b){ setcolor(15); circle(x,y,10); if(b==1){ setfillstyle(SOLID_FILL,RED); floodfill(x,y,15); } if(b==2){ setfillstyle(SOLID_FILL,YELLOW); floodfill(x,y,15); } if(b==3){ setfillstyle(SOLID_FILL,GREEN); floodfill(x,y,15); } if(b==4){ setfillstyle(SOLID_FILL,BLUE); floodfill(x,y,15); } } }; //class for player with required properties class Player{ private: Position pos;//player has attribute of type class Position public: int posindex; int status; int homeway; Player(){ status=0; homeway=0; } void setposition(int pindex,Position p){ posindex=pindex; pos=p; } void di...