Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.44 KB | None | 0 0
  1. //test.h
  2. #ifndef test_h
  3. #define test_h
  4.  
  5. void fun1();
  6.  
  7. void fun2();
  8. #endif
  9.  
  10. //test.cpp
  11. #include <stdio.h>
  12. #include <iostream>
  13. #include "test.h"
  14.  
  15. void fun1(){
  16.     std::cout << "text1";
  17. }
  18. void fun2(){
  19.     std::cout << "text2";
  20. }
  21.  
  22. //main.cpp
  23. #include <iostream>
  24. #include "test.h"
  25.  
  26. using namespace std;
  27.  
  28. int main(int argc, const char * argv[]) {
  29.         cout << "Hello, World!\n";
  30.     fun1();
  31.     fun2();
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement