Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2014
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. header.h
  2. #include<iostream>
  3. #include<string.h>
  4. #include<stdio.h>
  5. using namespace std;
  6. int fn(string);
  7.  
  8. main.cpp
  9. #include "header.h"
  10. string s= " hello world";
  11. int main()
  12. {
  13. fn(s):
  14. }
  15.  
  16. int fn(string ss)
  17. {
  18. printf("%s",ss);
  19. }
  20.  
  21. makefile
  22. all:hello
  23. hello:main.o fn.o
  24. tab g++ main.o fn.o-o hello
  25. main.o:main.cpp
  26. tab g++ -c main.cpp
  27. fn.o:fn.cpp
  28. tab g++ -c fn.cpp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement