Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //ACSL
- //Olivia Pagach
- //12-11-17
- //stuff
- #include <iostream>
- #include <time.h>
- #include <stdlib.h>
- #include <iomanip>
- #include <fstream>
- using namespace std;
- //main thing
- int main ()
- {
- cout<<"| ACSL CARD GAME | "<<endl;
- cout<<"Olivia Pagach | Kubik 2A"<<endl;
- cout<<"Begin data entry. Follow each number with ENTER."<<endl;
- //I chose to organize the data using start as the starting value, then a-j for the rest of the cards.
- cout<<"The starting number is..."<<endl;
- int start;
- cin>>start;
- cout<<"Player's first 3 cards are..."<<endl;
- int a;
- cin>>a;
- int b;
- cin>>b;
- int c;
- cin>>c;
- cout<<"The remaining cards are..."<<endl;
- int d;
- cin>>d;
- int e;
- cin>>e;
- int f;
- cin>>f;
- int g;
- cin>>g;
- int h;
- cin>>h;
- int i;
- cin>>i;
- int j;
- cin>>j;
- cout<<"The data has been entered, thank you."<<endl;
- //if =9 then the card is a pass so =0
- if (a==9)
- {
- a=0;
- }
- if (b==9)
- {
- b=0;
- }
- if (c==9)
- {
- c=0;
- }
- if (d==9)
- {
- d=0;
- }
- if (e==9)
- {
- e=0;
- }
- if (f==9)
- {
- f=0;
- }
- if (g==9)
- {
- g=0;
- }
- if (h==9)
- {
- h=0;
- }
- if (i==9)
- {
- i=0;
- }
- if (j==9)
- {
- j=0;
- }
- //Now 4=-10
- if (a==4)
- {
- a=-10;
- }
- if (b==4)
- {
- b=-10;
- }
- if (c==4)
- {
- c=-10;
- }
- if (d==4)
- {
- d=-10;
- }
- if (e==4)
- {
- e=-10;
- }
- if (f==4)
- {
- f=-10;
- }
- if (g==4)
- {
- g=-10;
- }
- if (h==4)
- {
- h=-10;
- }
- if (i==4)
- {
- i=-10;
- }
- if (j==4)
- {
- j=-10;
- }
- cards [i] = {a,b,c,d,e,f,g,h,i,j};
- cout<<"The data has been cleaned up."<<endl;
- end=int score (start,a,b,c,d,e,f,g,h,i,j)
- cout<<a<<endl;
- cout<<b<<endl;
- }
- int score (int start,cards [i])
- {
- do {
- total=
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement