Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- header.h
- #include<iostream>
- #include<string.h>
- #include<stdio.h>
- using namespace std;
- int fn(string);
- main.cpp
- #include "header.h"
- string s= " hello world";
- int main()
- {
- fn(s):
- }
- int fn(string ss)
- {
- printf("%s",ss);
- }
- makefile
- all:hello
- hello:main.o fn.o
- tab g++ main.o fn.o-o hello
- main.o:main.cpp
- tab g++ -c main.cpp
- fn.o:fn.cpp
- tab g++ -c fn.cpp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement