Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <ctime>
- using namespace std;
- /*//Blackjack Multiple decks
- int main(){ //change card count
- int i, thiscard, cards[156], picked[52] = { 0 };
- srand(time(NULL));
- //change what i is less than
- for (i = 0; i < 156; i++){
- thiscard = rand() % 52;
- //Change to == (how many decks)
- while (picked[thiscard] == 3){
- thiscard = rand() % 52;
- cards[i] = thiscard;
- picked[thiscard] += 1;
- // Has to be +=
- }
- }
- system("pause");
- return 0;
- }
- */
- /*//Pointer Notes
- int main(){
- int *pointer[10], intarray[10], num, i;
- for (i = 0; i < 10; i++){
- pointer[i] = &intarray[i];
- *pointer[i] = (i + 1) * 7;
- }
- cout << *pointer[i] << endl;
- }
- */
- //Recursive Notes
- int main(){
- int lines;
- cout << "How many lines?" << endl;
- cin >> lines;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement