#include "stdafx.h"
#include <fstream>
#include <iostream>
#include <string>
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
{
string p;
ifstream os("c:/sholim/milica2.txt",ios::in);
ofstream io("c:/sholim/milica2r.txt",ios::out);
while (!os.eof()) {
os >> p;
if (p == "[Sender]")
{
io << endl;
}
else {
io << p;
}
}
os.close();
io.close();
return 0;
}
A greška koju mi prijavljuje nije vezana za sam kod, nego za nešto drugo: This application has failed to start because MSVCR80D.dll was not found. Re-installing the application may fix this problem. Inače, koristim Visual Studio 2005 beta 2.
[Ovu poruku je menjao Gojko Vujovic dana 04.05.2006. u 10:15 GMT+1]