create three files my.h, my.cpp, and use.cpp
  the header file my.h contains: 
   
  extern int foo;
  void print_foo();
  void print(int);
   
  the source code file my.cpp #include my.h 
  defines print_foo to print the values of foo using cout, 
  and print(int i) to print the value of i using cout
   
   
  #include "my.h"
  void print_foo() {          
  cout << foo << '\n';  
  }
   
  void print(int i) {           
  cout << i <<'\n';  
   } 
   
  the source code file use.cpp my.cpp #include my.h defines main() 
  to set the value print_foo() to print the value of 99 using print( )
   
  do you use
  void print_foo(int i) {
       cout << i <<  99 << '\n';
  }

         

 
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.

[Non-text portions of this message have been removed]

Reply via email to