看代码:

#include <iostream>
using namespace std;


class A 
{
public:
	void fun1()
	{
		printf("this is a xxx1\n");
	}

	void fun2();
};

void A::fun2()
{
	printf("this is a xxx2\n");
}


void fun3()
{
	printf("this is a xxx3\n");
}


int main()
{
	return 0;
}
       看结果:

xxxxxx:~> strings a.out 
/lib/ld-linux.so.2
SuSESuSE
libpthread.so.0
_Jv_RegisterClasses
libstdc++.so.6
__gxx_personality_v0
_ZNSt8ios_base4InitC1Ev
_ZNSt8ios_base4InitD1Ev
__gmon_start__
libm.so.6
libgcc_s.so.1
libc.so.6
puts
__cxa_atexit
_IO_stdin_used
__libc_start_main
GLIBC_2.0
GLIBC_2.1.3
CXXABI_1.3
GLIBCXX_3.4
PTRh@
[^_]
this is a xxx3
this is a xxx2
        居然没有this is a xxx1,  今天踩了这个大坑, 差不多浪费0.5小时。





本文转载:CSDN博客