hello, i wrote a little program, but There are some problems.
Can anyone help me?
here is the code:
#include <iostream>
#include <math.h>
#include <fstream>
using namespace std;
bool tikrinimas(const char *filename)
{
ifstream failas(filename);
return failas;
}
int main ()
{
tikrinimas("example.txt");
bool failas;
if (failas==true)
{cout << "good";}
else
{cout <<"bad";}
system("PAUSE");
return 0;
}