成员函数指针,静态成员函数指针,友元函数指针

来源:互联网 发布:vba编程代码大全 编辑:程序博客网 时间:2024/06/13 21:45

结果:

static foo
static foo
foo
friend foo, 1
friend foo1, 1

 

编译环境:

g++ (GCC) 4.1.2 20071124 (Red Hat 4.1.2-42)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.