Hello peoples
i am having trouble compiling this program getting a the error is "Declaratio n Syntax error" using borland c++ bulider v.6 if any one can help thanks
i am having trouble compiling this program getting a the error is "Declaratio n Syntax error" using borland c++ bulider v.6 if any one can help thanks
Code:
void __fastcall TFrame2::FrameClick(TObject *Sender) { int main() { //it is showing the error right here ifstream myfile("c:\fileopen.txt"); if(myfile.is_open()) { while(!myfile.eof()) { getline(myfile, line); cout<<line<<endl; } myfile.close(); } else cout<<"Unable to open file"<<endl; } return 0; }
Comment