Skip to main content

Posts

MY ENCODER / DECODER (The Way i Do it!)

/* ======================= MY ENCODER / DECODER ======================= ------------------------- Further ideas - 1. Encode whole of a file given by user (but, how to set the file stream to input a file name given in run time, and not a predefined name) 2. Make it more advance by using many encryption techniques, and let the program chose any one of them randomly, taki khud programmer ko bhi pata na ho ki kaun se coding se decode hoga, and set a password in the program bnefore askig to decode, because that will be the only way 3. Currently i am supporting sentence input of maximum 101 characters, increase it to unlimited using stacks, queues, etc. 4. Add support for encoding and decoding other characters as well 5. In the print() function - Add a condition (maybe using iomanip.h) so as to print first character as capital, in case of printing decoded string 6.In the ctb() function -   {i}  Try to remove the assumption by modifying the functio...

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