摘要:
c++允许对指向函数的指针进行操作。它的一个重要使用是把一个函数作为参数传给另一个函数。 声明一个函数指针像声明一个函数原型一样,不过函数名前面插个符号 * ,然后用()扩起来。 #include <iostream> #include <string> using namespace std in 阅读全文
摘要:
1. void指针(鉴于对容易混淆的指针属性,在此贴上英文解释,英文表达更加直接)[Thevoidtype of pointer is a special type of pointer. In C++,voidrepresents the absence of type. Therefore,voidpointers are pointers that point to a value that has no type (and thus also an undetermined length and undetermined dereferencing properties).This g 阅读全文