moe45673

Assignment1Def

Sep 25th, 2011
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.48 KB | None | 0 0
  1. //OOP244A Assignment 1: ISBN Processor - Procedural Version
  2. //ISBNPrefix.cpp
  3. //Moshe Tenenbaum
  4. //Last modified: September 25, 2011
  5.  
  6. #include <iostream>
  7. #include <iomanip>
  8. #include <cstdio>
  9. #include <cstring>
  10. using namespace std;
  11.  
  12. #include "ISBNPrefix.h"
  13.  
  14. FILE* open(const char filename[])
  15. {
  16.         FILE* fp;
  17.  
  18.         fp=fopen(filename, "r");
  19.  
  20.         return fp;
  21. }
  22.  
  23. int close(FILE* fp)
  24. {
  25.         int i; // successful
  26.  
  27.         i = fclose(fp);
  28.  
  29.         return i;
  30.  
  31. }
Advertisement
Add Comment
Please, Sign In to add comment