files are read as streams, as outputs you can see on std::cout.
what you need to do is to use fstream. for example, if you will only read the file you should open it with an ifstream
ifstream input;
input.open(stri ng path);
when you finish reading you should close the file.
There are good sites for this. like cpp reference, just google it
User Profile
Collapse
-
Call up functions
Hi everyone,
I have a question that is tricking me.
I need to do something like this:
-----------------------------------------------------------
Code:int a; void* function(const &function){ //execute the code of the function here that i sent the address } int main(){ a = 0 ; call(&myFunction);
No activity results to display
Show More
Leave a comment: