摘要: 创建一个编辑器按钮类的插件 模块启动时: FExtender类提供了向菜单,菜单栏,工具栏添加扩展的方法: AddMenuBarExtension( FName ExtensionHook, EExtensionHook::Position HookPosition, const TSharedPt 阅读全文
posted @ 2020-10-29 16:22 Monday1024 阅读(259) 评论(0) 推荐(0)
摘要: 1:FILE *fopen(const char *filename, const char *mode) 指定模式mode打开filename 文件流int fclose(FILE *stream) 关闭流 stream。刷新所有的缓冲区。 FILE * f = NULL; f = fopen(" 阅读全文
posted @ 2020-10-24 17:39 Monday1024 阅读(204) 评论(0) 推荐(0)
摘要: 1:getchar()与putchar(),宽字符getwchar()与putwchar() int getchar(void) 从标准输入stdin获取一个字符,宽字符操作getwchar(), int putchar(int char)把参数char写入到标准输出stdout中,宽字符操作put 阅读全文
posted @ 2020-10-24 14:11 Monday1024 阅读(420) 评论(0) 推荐(0)
摘要: 1:void *memchr(const void *str, int c, size_t n)在str的前n个字节中搜索第一次出现字符 c的位置。返回字符位置的指针 char *str = "hello low"; char ch = 'l'; char * ret =(char *)memchr 阅读全文
posted @ 2020-10-22 18:11 Monday1024 阅读(390) 评论(0) 推荐(0)
摘要: 1:void *malloc(size_t size) 分配所需的内存空间,并返回一个指向它的指针。 char *str; str = (char *)malloc(15); strcpy(str, "hello world"); printf("str = %s\n", str); free(st 阅读全文
posted @ 2020-10-21 09:42 Monday1024 阅读(92) 评论(0) 推荐(0)
摘要: 拆分路径_splitpath_s(安全)对应宽字符 _wsplitpath_s errno_t _splitpath_s( char const* _FullPath, // 拆分的路径 char* _Drive, //盘符 size_t _DriveCount, char* _Dir, //路径 阅读全文
posted @ 2020-10-20 16:33 Monday1024 阅读(175) 评论(0) 推荐(0)
摘要: 数字到字符串 int value= 13214; char buffer[256]; //将整型值转换为字符串_itoa(value, buffer, 10); //将长整型值转换为字符串。 _ltoa(233, buffer, 10); //将无符号长整型值转换为字符串 _ultoa(233, b 阅读全文
posted @ 2020-10-19 16:54 Monday1024 阅读(279) 评论(0) 推荐(0)
摘要: 1:程序正常终止exit(0); 或者 quick_exit (EXIT_SUCCESS); _Exit (EXIT_FAILURE); 2: 异常程序终止,使程序崩溃 abort(); 3:程序正常终止并调用指定的函数 void exit_fun() { printf(" "); } atexit 阅读全文
posted @ 2020-10-19 10:43 Monday1024 阅读(309) 评论(0) 推荐(0)
摘要: int main() { /* 初始化随机数发生器 */ srand((unsigned int)time(NULL)); for (int i =0;i<5;i++) { //随机数 printf("%d \n", rand()); } //printf("%d \n" ,rand()); sys 阅读全文
posted @ 2020-10-19 09:43 Monday1024 阅读(71) 评论(0) 推荐(0)
摘要: 1:函数time(),返回从(1970-01-01 00:00:00 UTC)起经过的时间,单位秒; time_t seconds; time(&seconds); //或者 time_t tm_seconds = time(NULL); 2:struct tm 是保存时间和日期的结构,定义如下: 阅读全文
posted @ 2020-10-16 17:47 Monday1024 阅读(127) 评论(0) 推荐(0)