Guest User

Untitled

a guest
Aug 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. ostream error. Can anybody debug this?
  2. int main ()
  3. {
  4. FILE * pFile;
  5. pFile = fopen ("myfile.txt","w");
  6. if (pFile!=NULL)
  7. {
  8. fputs ("fopen example",pFile);
  9. fclose (pFile);
  10. }
  11. pFile<< "r "<<" " <<"ggjjsss" <<'_'<<"gggjj"<< " " << "HLLO " <<endl;
  12. }
  13.  
  14. #include<fstream>
  15.  
  16. ofstream File("myfile.txt");
  17. File<< "r "<<" " <<"ggjjsss" <<'_'<<"gggjj"<< " " << "HLLO " <<endl;
Add Comment
Please, Sign In to add comment