Posted by dasdsadsa Mon 22nd Jan 2007 20:58 - Syntax is None/text - 24 views
Download | New Post | Modify | Hide line numbers
  1. int broiKomentari(ifstream file)
  2. {    char ch;
  3.     char last;
  4.     int i=0;
  5.     while(file.get(ch))
  6.     {if(last=='/' && ch=='*')
  7.     { while(last!='*' && ch!='/')
  8.     {    file.get(ch);
  9.         i++;
  10.         last = ch;
  11.     }
  12.     }
  13.     last = ch;
  14.     }
  15.    
  16.     return i-1; // vadi edin simvol zashtoto smqta i kogato ch = '*'
  17. }

PermaLink to this entry https://pastebin.co.uk/9439
Posted by dasdsadsa Mon 22nd Jan 2007 20:58 - Syntax is None/text - 24 views
Download | New Post | Modify | Hide line numbers