-
int broiKomentari(ifstream file)
-
{ char ch;
-
char last;
-
int i=0;
-
while(file.get(ch))
-
{if(last=='/' && ch=='*')
-
{ while(last!='*' && ch!='/')
-
{ file.get(ch);
-
i++;
-
last = ch;
-
}
-
}
-
last = ch;
-
}
-
-
return i-1; // vadi edin simvol zashtoto smqta i kogato ch = '*'
-
}
Posted by dasdsadsa Mon 22nd Jan 2007 20:58 - Syntax is None/text - 24 views
Download | New Post | Modify | Hide line numbers
Download | New Post | Modify | Hide line numbers
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
Download | New Post | Modify | Hide line numbers