Name: Anonymous 2011-09-04 0:43
hey,/prog/ i am trying to figure out how to pass a file onto a function , but my compiler goes ape shit when i run the following code .What am i doing wrong? thanks.
#include <iostream>
#include <fstream>
using namespace std;
float read(ifstream,float,float,float);
int main ()
{
float a,b,c;
ifstream file
file.open("file.txt");
read(quadratic,a,b,c);
return 0;
}
#include <iostream>
#include <fstream>
using namespace std;
float read(ifstream,float,float,float);
int main ()
{
float a,b,c;
ifstream file
file.open("file.txt");
read(quadratic,a,b,c);
return 0;
}