inst.cxx 340 B

12345678910111213141516171819202122
  1. #include "foo.h"
  2. #include "lib1.h"
  3. #include "lib2.h"
  4. #include <stdio.h>
  5. int main ()
  6. {
  7. if ( Lib1Func() != 2.0 )
  8. {
  9. printf("Problem with lib1\n");
  10. return 1;
  11. }
  12. if ( Lib2Func() != 1.0 )
  13. {
  14. printf("Problem with lib2\n");
  15. return 1;
  16. }
  17. printf("The value of Foo: %s\n", foo);
  18. return SomeFunctionInFoo()-5;
  19. }