User Profile

Collapse

Profile Sidebar

Collapse
masterofthebus
masterofthebus
Last Activity: Feb 25 '08, 08:41 PM
Joined: Jan 16 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • masterofthebus
    replied to file open in C
    in C
    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
    See more | Go to post

    Leave a comment:


  • masterofthebus
    started a topic Call up functions
    in C

    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);
    ...
    See more | Go to post
No activity results to display
Show More
Working...