All pastes #919476 Raw Edit

Unnamed

public cpp v1 · immutable
#919476 ·published 2008-02-26 20:55 UTC
rendered paste body
//hf: <br>-nel sortores legyen//allomanyba kiirni azt amit kepernyore#include <iostream>#include <fstream>using namespace std;int FajlbolOlvas(char fnev[]){	char c;	char next;	char kov;	int toll=1;	ifstream be(fnev);	if(!be)	{	cout<<"Hiba!";		return 0;	}		while (!be.eof())	{   c=be.get();           if (c=='<'){                   toll=0;  		           next=be.get();                   kov=be.get();                   if(next=='b'&&kov=='r'){                      cout<<'\n';                   }else {                 }         }		else if (c=='>')			toll=1;	  else if(toll==1&&c!='\n') cout<<c;			}	be.close();	return 1;}int main(){	FajlbolOlvas("szoveg.txt");//	FajlbaIr("szoveg.txt"),"ki.txt");    system("pause");	return 0;}