////////////////////创建窗体图层"Window_Layer"/////////////////AcDbObjectIdcreateWindowsLayer(){//打开层表,打开方式为只写///AcDbLayerTable *pLayerTable;acdbHostApplica ...
分类:
其他好文 时间:
2020-04-01 01:03:04
阅读次数:
92
解题思路:采用结构体来存储家谱 其中需要注意的是祖先和后代的判断 #include <stdio.h> #include <string.h> typedef struct { char s[71]; int space; int parent; } Genealogy; int getparent ...
分类:
其他好文 时间:
2020-03-28 21:47:33
阅读次数:
113
#include <iostream> #include <stdio.h> using namespace std; char *_strcpy(char* des, char* src) { if (des == NULL || src == NULL) { return 0; } // cou ...
分类:
其他好文 时间:
2020-03-18 18:34:38
阅读次数:
49
close all; clc; clear; str = 'E:\matlab\temp_data\'; files = dir(strcat(str,'*.txt')); number_files = length(files); x = zeros(number_files,4526); y = ...
分类:
其他好文 时间:
2020-03-05 13:16:39
阅读次数:
280
```cpp #include #include #include //c++ 11 template void checkSize(C &c) { if(c.size() > 3) { c[3] = 10; //单线程OK,多线程可能出错 } c.at(3) = 10; } void arrayP... ...
分类:
编程语言 时间:
2020-02-24 20:41:10
阅读次数:
77
1 void __cdecl OutputDebugStringF(const char* format, ...) 2 { 3 va_list vlArgs; 4 char* strBuffer = (char*)GlobalAlloc(GPTR, 4096); 5 va_start(vlArgs... ...
分类:
其他好文 时间:
2020-02-23 09:44:07
阅读次数:
68
NSIS 路径$INSTDIR安装目录 ($INSTDIR 可以使用 StrCpy、ReadRegStr、ReadINIStr 等等来更改。例如在 .onInit 函数里可以用来做高级的检测安装定位)。注意在卸载程序代码里,$INSTDIR 为卸载程序所在的目录而不是在安装程序里所指定的目录。例如, ...
分类:
其他好文 时间:
2020-02-23 09:22:18
阅读次数:
78
摘自 https://www.cnblogs.com/x_wukong/p/5920437.html 转自:http://blog.csdn.net/haomcu/article/details/7371835 Linux中的进程间通信机制源自于Unix平台上的进程通信机制。Unix的两大分支AT& ...
分类:
Web程序 时间:
2020-02-22 18:37:18
阅读次数:
108
函数格式函数功能 strcat(字符串名1,字符串名2) 将字符串2连接到字符串1后边,返回字符串1的值。 strncat(字符串名1,字符串名2,长度n) 将字符串2前n个字符连接到字符串1后边,返回字符串1的值。 strcpy(字符串名1,字符串名2) 将字符串2复制到字符串1,返回字符串1的值 ...
分类:
编程语言 时间:
2020-02-16 16:10:46
阅读次数:
87
动态分配内存 内存的申请和释放使用两个函数来实现: malloc/free。 malloc申请内存 #include<stdlib.h> int main() { int* p = (int*)malloc(100 * 4);// 申请100*4字节 for(int i = 0;i <100;i++ ...
分类:
其他好文 时间:
2020-02-09 09:15:31
阅读次数:
65