includefstreamh includestdlibh needed for exit

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: .h> // needed for exit() int main() {"test.dat"); if( for a successful open { cout<<"file not opened"<<endl; exit(1); } cout<<The file has been successfully opened<<endl; return 0; } Example 1...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online