Advertisement
Guest User

Untitled

a guest
Feb 25th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1.         if (point == true)
  2.         {
  3.             file.open(OUTPUT, ios_base::out | ios_base::trunc);
  4.             if (file.is_open())
  5.             {
  6.                 if (lineFirst.word->next != NULL)
  7.                 {
  8.                     lineNow = &lineFirst;
  9.                     while (lineNow->next != NULL)
  10.                     {
  11.                         search(lineNow, find);
  12.                         file << lineNow->count << " ";
  13.                         lineNow = lineNow->next;
  14.                     }
  15.                 }
  16.                 else
  17.                 {
  18.                     printf ("File is empty!\n");
  19.                 }
  20.  
  21.                 file.close();
  22.  
  23.             }
  24.             else
  25.             {
  26.  
  27.                 printf ("Output file not found!\n");
  28.  
  29.             }
  30.  
  31.         }
  32.         else
  33.         {
  34.             printf ("Point not found!\n");
  35.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement