Skip to main content

Posts

Showing posts from March, 2018

The CricBoard - A C++ Project

//All this is made with the knowledge of C++ till class 11, so it might seem to be a bit lengthy... #include<iostream> #include<stdlib.h> #include<stdio.h> struct bat{ char name[26]; int run; int ball; float strrate; int flag; }bats[11]; struct bowl{ char name[26]; int run; int overs; float econ; int wicket; }bowls[5]; using namespace std; void title(void) { system("cls"); cout<<"\n\t\tThe CricBoard\n"; cout<<"\t\t_____________\n\n"; } void benter(bat B[]); void blenter(bowl B[]); void bdisplay(void); void bldisplay(void); void bedit(int); void bwedit(int); int main() { punarvichaar: int ch,_ch2; title(); cout<<"Choose from the below two options (Enter 1 or 2):" <<"\n\n1. Enter the Batting Statistics first" <<"\n\n2. Enter the Bowling Statistics first\n\n"; cin>>ch; if(ch==1) { benter(bats); blenter(bowls); } e

The MultiMatics - A C++ Project

/*This program is a very basic one, but still a quite long use, making it useful for learning*/ /* I HAVE WRITTEN THIS BY MYSELF, and I give FULL RIGHTS TO ANYONE willing to take this code for learning purpose, or for experimenting with this! And, 'please' don't use this for "copy&paste" purposes*/ #include<iostream> #include<conio.h> #include<math.h> #include<stdlib.h> #define 1/0 Not_Defined using namespace std; void delay(void) {     for(int i=0;i<3000;i++)     for(int j=0;j<9090;j++) {} } void expan(void); long double fact(long int a); //long double pow(long int x,long int y) has been removed by me due to no need void pac(); void trigo(void); void genac(); int main() {     float a,b; long int x,n,p,choice;     punarvichaar:     clrscr();     cout<<"Enter : "<<endl<<"@ 1 for expansion of (1+x)^n"<<endl <<"\n@ 2 for factorial calculation"<