We are having problem with our code regarding file streaming.
No, you are having problems with your code because you are doing very bad things: void main()
-- MAIN is and always has been an int function. See this. exit(1);
-- is there something wrong with a simple return(1)
? system("Pause");
-- see this main();
-- Never NEVER call main(). It is an entry point to your program and should not be used as a recursive function! main();
-- and again main();
-- and again
in void input()
-- main();
-- 3 times
in void equate()
-- main();
-- 3 times
in void display()
-- main();
-- 7 times
etc...
In these functions, a simple return
should be used, and when the function returns, test the error code you set.