|
|
|
[求助]若干问题,诚心求教!
说的不清楚 我的意思是C的结构体中是不能定义函数的,包含指向函数的指针是可以的.一个小小的例子: #include <stdio.h> typedef int (*PF)(int, int); struct T { int a; PF pFun; }; int add(int a, int b) { return a + b; } int main() { T test; test.pFun = add; printf("%d", test.pFun(2, 3)); return 0; } |
|
[求助]若干问题,诚心求教!
MFC对Windows Api进行了封装,参数和Windows API可能不一样,好象使用缺省的HANDLE,HWND参数这样的比较多见.如 SendMessage GetWindowText 如果想给特定的进程发送消息,或者读取指定的窗口控件的文字,就要用Windows API,前面要加域符号::,表示用的是全局域的Windows API函数. C中的结构体内是不能有函数的,C++里面才可以,和Class的调用方法一样的. |
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值