c++ - How can i create a class that inherits the methods from FILE -


How do I increase the FILE class to use my methods? In other words, how can I use all the tasks that are provided with the default FILE object and still have the same functionality that imitates the actual functions?

  class myFile {file * _f; Public: Open MyFile (File * F) {/ * file here, then _f = f; * /}; Virtual ~ myFile () {/ * Close the file here}; // and add more methods here}    

Comments

Popular posts from this blog

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -

jasper reports - How to center align barcode using jasperreports and barcode4j -

django - CommandError: You must set settings.ALLOWED_HOSTS if DEBUG is False -