Posts by Kaike Alves Silva • 24 points
2 posts
-
0
votes1
answer56
viewsA: How to pass fstream variable to another function?
The mistake probably happens because Remove() has been set to receive a parameter of type fstream by value (copy), but fstream does not allow copying operation. Alter Remove() so that it receives a…
-
0
votes2
answers74
viewsA: When to use new and delete in c++?
Basically, new and delete are a safe alternative to direct use of malloc() and free(). new and delete are casings (Wrappers) from C++ to malloc() and free(), That is, underneath the scenes they use…