摘要:
为了复试,重新从零翻开了一遍C++程序设计基础,看到函数指针,才想到这个地方我一开始学的时候就没学懂,趁这次机会把它搞懂。直接上代码,注释很详细:#include using namespace std; typedef int (*funType)(int, int); typedef int funType2(int, int); typedef int *(*pfunType)(in... 阅读全文
摘要:
为了复试,重新从零翻开了一遍C++程序设计基础,看到函数指针,才想到这个地方我一开始学的时候就没学懂,趁这次机会把它搞懂。直接上代码,注释很详细:#include using namespace std; typedef int (*funType)(int, int); typedef int funType2(int, int); typedef int *(*pfunType)(in... 阅读全文
|