-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
126 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#include <iostream> | ||
using namespace std; | ||
|
||
int toInt(char input); | ||
bool isVowel(char c); | ||
|
||
int main(){ | ||
char a = 'a'; | ||
cout << toInt(a); | ||
|
||
|
||
return 0; | ||
} | ||
|
||
int toInt(char input){ | ||
return static_cast<int>(input); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#include <iostream> | ||
#include <fstream> | ||
using namespace std; | ||
/* | ||
inFile.open(filePath.c_str(), ios::binary); | ||
inFile.seekg(0, ios_base::end); | ||
int fileLen = inFile.tellg(); | ||
inFile.seekg(0, ios_base::beg); | ||
inFile.read(charArr, fileLen); | ||
inFile.close(); | ||
*/ | ||
|
||
int fileSize(ifstream file); | ||
|
||
int main() { | ||
|
||
fstream file; | ||
file.open("test.txt"); | ||
cout << fileSize(file); | ||
file.close(); | ||
|
||
return 0; | ||
} | ||
|
||
int fileSize(ifstream file){ | ||
return 0; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#include <iostream> | ||
using namespace std; | ||
|
||
int main() { | ||
|
||
|
||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
this is a test | ||
this is a test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import random as rnd | ||
|
||
picks = ['2 of hearts','3 of spades','ace of spades','king of hearts','7 of clubs'] | ||
|
||
print(rnd.randint(0,1) * len(picks)) | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
cards = ['5 of hearts', | ||
'8 of hearts', | ||
'2 of hearts', | ||
'9 of hearts', | ||
'queen of hearts', | ||
'ace of hearts', | ||
'6 of hearts', | ||
'king of hearts', | ||
'7 of hearts', | ||
'jack of hearts', | ||
'4 of hearts', | ||
'10 of hearts', | ||
'3 of hearts', | ||
'5 of spades', | ||
'8 of spades', | ||
'2 of spades', | ||
'9 of spades', | ||
'queen of spades', | ||
'ace of spades', | ||
'6 of spades', | ||
'king of spades', | ||
'7 of spades', | ||
'jack of spades', | ||
'4 of spades', | ||
'10 of spades', | ||
'3 of spades', | ||
'5 of diamonds', | ||
'8 of diamonds', | ||
'2 of diamonds', | ||
'9 of diamonds', | ||
'queen of diamonds', | ||
'ace of diamonds', | ||
'6 of diamonds', | ||
'king of diamonds', | ||
'7 of diamonds', | ||
'jack of diamonds', | ||
'4 of diamonds', | ||
'10 of diamonds', | ||
'3 of diamonds', | ||
'5 of clubs', | ||
'8 of clubs', | ||
'2 of clubs', | ||
'9 of clubs', | ||
'queen of clubs', | ||
'ace of clubs', | ||
'6 of clubs', | ||
'king of clubs', | ||
'7 of clubs', | ||
'jack of clubs', | ||
'4 of clubs', | ||
'10 of clubs', | ||
'3 of clubs'] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import importlib | ||
import_module('cards') | ||
|