Commit 69f4cad6 authored by Jorand Jean-baptiste's avatar Jorand Jean-baptiste
Browse files

correctif create db

parent df826e04
Loading
Loading
Loading
Loading
+7
Changes for Utils/createNewDB.cpp: 7 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -15,6 +15,10 @@ void multiplication(int coeff, const string & input, const string & output) {

  while(readfile.good()) {
    getline(readfile, line);
    if (line.size() == 0) {
      continue;
    }

    for (int i = 0; i<coeff; i++) {
      add = line;
      for (int j = 0; j<i; j++) {
@@ -35,6 +39,9 @@ void division(int coeff, const string &input, const string & output) {
  
  while(readfile.good()) {
    getline(readfile, line);
    if (line.size() == 0) {
      continue;
    }
    nbline++;
    if (nbline%coeff == 0) {
      outfile << line << endl;