会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wxiaop
博客园
首页
新随笔
联系
订阅
管理
1
2
下一页
2020年10月29日
ue 4 编辑器扩展01
摘要: 创建一个编辑器按钮类的插件 模块启动时: FExtender类提供了向菜单,菜单栏,工具栏添加扩展的方法: AddMenuBarExtension( FName ExtensionHook, EExtensionHook::Position HookPosition, const TSharedPt
阅读全文
posted @ 2020-10-29 16:22 Monday1024
阅读(259)
评论(0)
推荐(0)
2020年10月24日
c 文件操作stdio
摘要: 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)
c 文件的读取与写入
摘要: 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)
2020年10月22日
c string 常用函数
摘要: 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)
2020年10月21日
C 动态内存管理
摘要: 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)
2020年10月20日
c 路径
摘要: 拆分路径_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)
2020年10月19日
c 数字转化字符串与字符串转化为数字
摘要: 数字到字符串 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)
c rand() srand()
摘要: 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)
2020年10月16日
C 库 time
摘要: 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)
1
2
下一页
公告