Advertisement
payjack

Untitled

Dec 13th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.89 KB | None | 0 0
  1. //ACSL
  2. //Olivia Pagach
  3. //12-11-17
  4.  
  5. //stuff
  6. #include <iostream>
  7. #include <time.h>
  8. #include <stdlib.h>
  9. #include <iomanip>
  10. #include <fstream>
  11.  
  12. using namespace std;
  13.  
  14. //main thing
  15. int main ()
  16. {
  17.   cout<<"| ACSL CARD GAME | "<<endl;
  18.   cout<<"Olivia Pagach | Kubik 2A"<<endl;
  19.   cout<<"Begin data entry. Follow each number with ENTER."<<endl;
  20.   //I chose to organize the data using start as the starting value, then a-j for the rest of the cards.
  21.   cout<<"The starting number is..."<<endl;
  22.   int start;
  23.   cin>>start;
  24.   cout<<"Player's first 3 cards are..."<<endl;
  25.   int a;
  26.   cin>>a;
  27.   int b;
  28.   cin>>b;
  29.   int c;
  30.   cin>>c;
  31.   cout<<"The remaining cards are..."<<endl;
  32.   int d;
  33.   cin>>d;
  34.   int e;
  35.   cin>>e;
  36.   int f;
  37.   cin>>f;
  38.   int g;
  39.   cin>>g;
  40.   int h;
  41.   cin>>h;
  42.   int i;
  43.   cin>>i;
  44.   int j;
  45.   cin>>j;
  46.   cout<<"The data has been entered, thank you."<<endl;
  47.   //if =9 then the card is a pass so =0
  48.   if (a==9)
  49.   {    
  50.       a=0;
  51.   }
  52.   if (b==9)
  53.   {
  54.       b=0;
  55.   }
  56.   if (c==9)
  57.   {
  58.       c=0;
  59.   }
  60.   if (d==9)
  61.   {
  62.       d=0;
  63.   }
  64.   if (e==9)
  65.   {
  66.       e=0;
  67.   }
  68.   if (f==9)
  69.   {
  70.       f=0;
  71.   }
  72.   if (g==9)
  73.   {
  74.       g=0;
  75.   }
  76.   if (h==9)
  77.   {
  78.       h=0;
  79.   }
  80.   if (i==9)
  81.   {
  82.       i=0;
  83.   }
  84.   if (j==9)
  85.   {
  86.       j=0;
  87.   }
  88.   //Now 4=-10
  89.   if (a==4)
  90.   {    
  91.       a=-10;
  92.   }
  93.   if (b==4)
  94.   {
  95.       b=-10;
  96.   }
  97.   if (c==4)
  98.   {
  99.       c=-10;
  100.   }
  101.   if (d==4)
  102.   {
  103.       d=-10;
  104.   }
  105.   if (e==4)
  106.   {
  107.       e=-10;
  108.   }
  109.   if (f==4)
  110.   {
  111.       f=-10;
  112.   }
  113.   if (g==4)
  114.   {
  115.       g=-10;
  116.   }
  117.   if (h==4)
  118.   {
  119.       h=-10;
  120.   }
  121.   if (i==4)
  122.   {
  123.       i=-10;
  124.   }
  125.   if (j==4)
  126.   {
  127.       j=-10;
  128.   }
  129.   cards [i] = {a,b,c,d,e,f,g,h,i,j};
  130.   cout<<"The data has been cleaned up."<<endl;
  131.   end=int score (start,a,b,c,d,e,f,g,h,i,j)
  132.   cout<<a<<endl;
  133.   cout<<b<<endl;
  134. }
  135.  
  136. int score (int start,cards [i])
  137. {
  138.   do {
  139.     total=
  140.   }
  141. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement