Salem
done, but no difference in output.> #include<iostream>
Where is the
using namespace std;
> void main
main returns an int.
i think c++ will close the outfile automatically when the dtor will be called.> outfile.put('\f');
After this, why not have say
Code:
outfile.close();
cout<<" out of loop";
getch();
any way i tried it, but no difference in output.
printer is on and ok> nothing is printed .
Did you switch the printer on?
Try printing something using say notepad, both BEFORE and AFTER your program is run. It would also be interesting to see if your output appears in between printing two other things.
it prints my other documents from notepad,Mword etc..