Here is my try:
Code:
//print_bin.h:
void print_bin ();
Code:
//print_bin.cpp:
#include<iostream>
using namespace std;
void print_bin () {
cout<<"abc";
}
Code:
//bitwise.cpp
#include "print_bin.h"
#include <iostream>
using namespace std;
int main ()
{
int i;
}
[root@localhost fifth]# g++ bitwise.cpp print_bin.cpp -o bit_print
[root@localhost fifth]# ./bit_print
[root@localhost fifth]#
It can be compiled with no error, however, why the program don't output abc that is I want to do?
Thank you.