I have a piece of code that I need to adjust so that it removes all lines with // while copying. I tried to do:
f (prevkar == '/' &&kar!= '/' )
uitput.put ('/');
but it didn't seem to work.
output.open ("output.txt",ios::out);
kar = input.get ( );
while ( ! input.eof ( ) )
{
//this part needs to be adjusted
output.put (kar);
kar = input.get ( );
}