Changes

Jump to: navigation, search

GPU610/Turing

517 bytes added, 22:08, 13 October 2015
the user. The program also counts the number of lines in the file and the number of matches found in the file.
=== Paralyse Nested Loops ===for(int i = 0; i < numberoflines; i++){   std::getline(fin, line); std::istringstream iss{line};  while(std::getline(iss, temp, ' '))  {  If(input1.compare(temp)==0){ matches ++; } }  }  }I think by paralysing the nested loop above I should be able to  produce a more efficient program. This section of the code uses a  majority of the CPU's power. This is where the program is actually  though the file line by line and then word by word.
=== Assignment 2 ===
=== Assignment 3 ===

Navigation menu