From 3611ff8ad93e6e6659a31fa8feccc7404ad6f6ab Mon Sep 17 00:00:00 2001 From: MotaheerH <54823248+MotaheerH@users.noreply.github.com> Date: Sun, 6 Sep 2020 03:23:40 +0530 Subject: [PATCH] Add files via upload --- Screening-Assignment/MotaheerH.cpp | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 Screening-Assignment/MotaheerH.cpp 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"<