Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 11th, 2012  |  syntax: None  |  size: 0.58 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. 'Variable' was not declared in this scope [closed]
  2. bool QP(char A[],int n)  //delete duplicate
  3. {
  4.    for(int i=0;i<n-1;i++)
  5.     {
  6.         if(A[i+1]==A[i])
  7.            return false;
  8.     }
  9.    return true;
  10. }
  11.  
  12. void Writeword(char* word)
  13. {
  14.   if(QP(currentword,strlen(currentword)))
  15.     {
  16.      fprintf(fp, "%sn", currentword);
  17.      charswritten += strlen(word) + 2;
  18.      Processbar();
  19.     }
  20. }
  21.        
  22. void Writeword(char* word)
  23. {
  24.   char currentword;
  25.   if(QP(currentword,strlen(currentword)))
  26.     {
  27.      fprintf(fp, "%sn", currentword);
  28.      charswritten += strlen(word) + 2;
  29.      Processbar();
  30.     }
  31. }