摘要: ```#include#include#define NUMSIZE 100000using namespace std;int compare_func(const void *a, const void *b) { //接收两个任意类型的指针 return *(int *)a - *(int *)b; // 比较的是int值 所以需要转换为int类型的指针 然后再取值进行比较}int main... 阅读全文
posted @ 2020-01-12 23:19 zpchcbd 阅读(166) 评论(0) 推荐(0)
摘要: ``` #include #include #pragma warning(disable:4996) using namespace std; int main(int argc, char * argv[]) { OSVERSIONINFO osver; //char RecordInfor[1024]; //ZeroMemory(RecordInfor, 1024); osver.dwOSV 阅读全文
posted @ 2020-01-12 20:07 zpchcbd 阅读(424) 评论(0) 推荐(0)