Advertisement
Guest User

Untitled

a guest
Jun 26th, 2012
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. class c2{
  2.     public:
  3.         function2(std::ifstream &f){
  4.             here it breaks
  5.         }
  6. };
  7.  
  8. class c1{
  9.     public:
  10.         c2 thing
  11.         function1(std::ifstream &f){
  12.             thing.function2(f);
  13.         }
  14. };
  15. void funct2(std::ifstream &f){
  16.     c1 stuff;
  17.     stuff.function1(f);
  18. }
  19. void funct1(){
  20.     std::ifstream f("whatever");
  21.     funct2(f);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement