diff --git a/Screening-Assignment/mnkr4844.cpp b/Screening-Assignment/mnkr4844.cpp new file mode 100644 index 0000000..4fef674 --- /dev/null +++ b/Screening-Assignment/mnkr4844.cpp @@ -0,0 +1,40 @@ +//mnkr4844@gmail.com +#include +#include +#include +#include +#include +#include +using namespace std; +int main() +{ +string lines[2000] ; +ifstream myfile("shakespeare.txt"); +int x=0; +string messageVar; + +time_t begin, end; +time(&begin); +while(!myfile.eof()) +{ + getline(myfile, lines[x], '\n'); + x++; +} +int random; +double total_length = 0; +for(int i=0;i<5;i++){ +random = rand() % 10 + 1; +cout<