-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
9bfdcb1
commit 2f83785
Showing
9 changed files
with
165 additions
and
13 deletions.
There are no files selected for viewing
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,14 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = tab | ||
indent_size = 4 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.{txt}] | ||
insert_final_newline = false | ||
|
||
[*.{cpp,h}] | ||
indent_size = 2 |
This file was deleted.
Oops, something went wrong.
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,100 @@ | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. | ||
So far, has the most fun programming in C++! | ||
Enjoy's a good street taco for sure. | ||
Has never traveled to any Asian countries, but really wants to! | ||
Would classify Blue Moon|Belgian White as 'Favorite Beer'. |
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,18 @@ | ||
#include <iostream> | ||
#include <string> | ||
#include <array> | ||
#include <cstdlib> | ||
#include <ctime> | ||
|
||
#include "fta.h" | ||
|
||
using namespace std; | ||
|
||
string fact () { | ||
array<string, MAX_FACTS> FactArray = FileToArray("facts.txt"); | ||
srand((unsigned) time(0)); | ||
int RandomNumber = rand() % 100; | ||
|
||
// cout << RandomNumber << endl; | ||
return FactArray[RandomNumber]; | ||
} |
This file was deleted.
Oops, something went wrong.
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,23 @@ | ||
#include <iostream> | ||
#include <fstream> | ||
#include <string> | ||
#include <array> | ||
|
||
#define MAX_FACTS 100 | ||
|
||
using namespace std; | ||
|
||
array< string, MAX_FACTS > FileToArray(string ifile) { | ||
array<string, MAX_FACTS> FactArray; | ||
ifstream facts(ifile); | ||
string Fact, RandomFact; | ||
unsigned int FactArrayLength = 0; | ||
|
||
while(getline(facts, Fact)) { | ||
if (FactArrayLength < MAX_FACTS) { | ||
FactArray[FactArrayLength++] = Fact; | ||
} | ||
} | ||
|
||
return FactArray; | ||
} |
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
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