diff --git a/Screening-Assignment/typing-speed-mariaahbanu.cpp b/Screening-Assignment/typing-speed-mariaahbanu.cpp new file mode 100644 index 0000000..d3dcc52 --- /dev/null +++ b/Screening-Assignment/typing-speed-mariaahbanu.cpp @@ -0,0 +1,43 @@ +//mariaahbanu@gmail.com +//Mariah Banu + +#include +#include +#include +#include +using namespace std; + +int main(){ + + //Read File: + string lines[1396]; + std::string line; + std::ifstream file("shakespeare.txt"); + for(int i=0; getline(file, line); i++){ + lines[i]=line; + } + file.close(); + + //Display, Time And Read 5 Random Lines: + int charTyped=0; + time_t begin, end; + time(&begin); + for(int i=0; i<5; i++){ + cout<