Advertisement
Guest User

Untitled

a guest
May 5th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. #include <iostream>
  2. #include <iomanip>
  3. #include <ctime>
  4. using namespace std;
  5.  
  6. /*//Blackjack Multiple decks
  7. int main(){ //change card count
  8. int i, thiscard, cards[156], picked[52] = { 0 };
  9.  
  10. srand(time(NULL));
  11. //change what i is less than
  12. for (i = 0; i < 156; i++){
  13. thiscard = rand() % 52;
  14.  
  15. //Change to == (how many decks)
  16. while (picked[thiscard] == 3){
  17. thiscard = rand() % 52;
  18.  
  19. cards[i] = thiscard;
  20. picked[thiscard] += 1;
  21. // Has to be +=
  22. }
  23. }
  24. system("pause");
  25. return 0;
  26. }
  27. */
  28.  
  29. /*//Pointer Notes
  30. int main(){
  31. int *pointer[10], intarray[10], num, i;
  32.  
  33. for (i = 0; i < 10; i++){
  34. pointer[i] = &intarray[i];
  35. *pointer[i] = (i + 1) * 7;
  36. }
  37.  
  38. cout << *pointer[i] << endl;
  39. }
  40. */
  41.  
  42. //Recursive Notes
  43. int main(){
  44. int lines;
  45. cout << "How many lines?" << endl;
  46. cin >> lines;
  47. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement