Posts

TIC-TAC-TOE Game using Graphics in C++

  // Tic Tac Toe Game in C++                   //Made By: Junaid Aslam Rajput     //Roll No: 20SW084 #include<graphics.h>    #include<iostream> #include<stdlib.h> using namespace std; char square[10] = {'o','1','2','3','4','5','6','7','8','9'}; //For Position of Elements //at which game played void StartingPage(); //Just For Look int checkwin(); void board(); //Whole board of Tic Tac Toe //and its numbers void graphicsfunc(); int main() { // graphicsfunc(); int player = 1,i,choice;     char mark;     do     {         board();  //Print the Board         player=(player%2)?1:2; //For Changing players and make alternative if(player==1)        { cout << "Player " << player << " Turn, Enter X at Position:  ";     //Display message which player`s         

Graphics Practice Program in C++(Functions)

 #include<graphics.h> #include<iostream> #include<conio.h> using namespace std; int main() {/* int gdriver=DETECT,gmode; initgraph(&gdriver,&gmode,"C:/TC/BGI"); settextstyle(COMPLEX_FONT,HORIZ_DIR,6); outtextxy(100,300,"Jonny"); */ int gdriver=DETECT,gmode; initgraph(&gdriver,&gmode,"C:/TC/BGI"); setcolor(RED); setbkcolor(WHITE); settextstyle(8,HORIZ_DIR,2); // outtext("Jonny"); // line(300,300,303,333); // outtext("\n\n\n"); // circle(200,200,100); // outtext("\n\n\n"); /// rectangle(995,995,995,995); // outtext("\n\n\n"); // bar(194,195,196,197); // outtext("\n\n\n"); // bar3d(194,195,196,197,393,192); // arc(14,15,16,17,32,12); while(true) { outtext("Jonny\n\n\n"); delay(3000); cleardevice(); outtext("Jonny Rajput"); delay(3000); } getch(); closegraph(); }*/

Umer 20SW033 Football Guessing Player Project

 /**          “Everything should be made as simple as possible, but not simpler.” -Albert Einstein          **/ #include<iostream> #include<conio.h> #include<iomanip> #include<windows.h> using namespace std; void startup(); void title(); void deployment(); class character{ public:     string choice,name,country; }; /**11111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111*/ class billionaire:public character { private:     int rank,age;     float networth;     string source,industry; public:     /**Methods name specifying the source(Industry) from which billionaires belong.*/     void link();     void technology();     void fashionRetail();     void investment();     void diversified();     void get_data(int r,string n,float nw,int a,string territory,string root,string ind)     {         rank=r;         name=n;         networth=nw;         age=a;         country=territory;         source=root;         industry=ind;