Hi, whats wrong with this program?
Thanks for answerCode:#include <iostream.h> #include <fstream.h> #include <cstdio> using namespace std; int main() { char input[30]; cin>>input; if(input==1) { ofstream a_file("test.dll"); cin>>input; a_file<<input; a_file.close(); } else if(input==2) { ifstream b_file("test.dll"); b_file>>input; cout<<input; b_file.close(); } getchar(); getchar(); return 0; }![]()



LinkBack URL
About LinkBacks





Read the error logs, most the time they tell you exactly whats wrong, and if not, they atleast tell you what line(mine does anyway) so you can atleast find the problem.