diff --git a/Screening-Assignment/MotaheerH.cpp b/Screening-Assignment/MotaheerH.cpp new file mode 100644 index 0000000..de57483 --- /dev/null +++ b/Screening-Assignment/MotaheerH.cpp @@ -0,0 +1,59 @@ +//motaheerhassan@gmail.com + +#include +#include +#include + +using namespace std; + +int main() +{ + int noOfChars=0, totalTime=0, size=0; + + ifstream myFile; + myFile.open("shakespeare.txt"); + if(myFile.is_open()) + { + //reading file into an array + string lines[1396]; + for(int i=0; i<1396; i++) + { + getline(myFile, lines[i]); + } + + + string inputLine; + cout<<"Typing test started. Start typing the sentences one by one as they appear"<