会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xingming
博客园
首页
新随笔
联系
订阅
管理
2022年10月19日
centos 7 安装mysql 5.7失败 出现 Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
摘要: Public key for mysql-community-common-5.7.40-1.el7.x86_64.rpm is not installed (1/5): mysql-community-common-5.7.40-1.el7.x86_64.rpm | 311 kB 00:01 (2
阅读全文
posted @ 2022-10-19 09:30 星明勇往直前
阅读(1038)
评论(0)
推荐(0)
2022年9月26日
一个查看堆内存泄露的工具
摘要: valgrind 1 #include <stdlib.h> 2 #include <stdio.h> 3 4 void f(void) 5 { 6 int *x = malloc(10 * sizeof(int)); 7 x[10] = 0; 8 } 9 int main(void) 10 { 1
阅读全文
posted @ 2022-09-26 18:04 星明勇往直前
阅读(35)
评论(0)
推荐(0)
文件上传服务器项目总结
摘要: 需求:创建一个文件服务器;要求保存客户端上传的所有文件,100 个并发,每个并发客户端上传文件100次 以下是核心代码 首先是客户端发送文件: for (sum = 0; sum < size;) { memset(bufcontent, 0x0, sizeof(bufcontent)); ret
阅读全文
posted @ 2022-09-26 18:00 星明勇往直前
阅读(37)
评论(0)
推荐(0)
2022年7月27日
指针学习1
摘要: 指针是什么? 指针就是一个地址地址代表的就是一块内存空间指针变量是什么? 用来存放指针 #include <stdio.h> #include <stdlib.h> main() { int i =5;// 定义一个int 类型的变量i 值 =5 //%#X表示16进制的地址占位符 printf("
阅读全文
posted @ 2022-07-27 17:51 星明勇往直前
阅读(27)
评论(0)
推荐(0)
java和C的区别
摘要: /*%d - int %ld – long int %c - char %f - float %lf – double %x – 十六进制输出 int 或者long int 或者short int %o - 八进制输出 %s – 字符串 Int len; Scanf(“%d”,&len);*/ #i
阅读全文
posted @ 2022-07-27 17:48 星明勇往直前
阅读(197)
评论(0)
推荐(0)
2022年7月11日
鸿蒙开发笔记
摘要: 组件 布局 事件 组件: ohos:id="$+id:but1" $+id= 代表给组件定义一个新的ID ohos:height="match_content" 按钮里的文字多大,按钮就有多大; ohos:text="点我"/> 按钮里的内容 ohos:text_size="200" 文字的大小 o
阅读全文
posted @ 2022-07-11 21:42 星明勇往直前
阅读(46)
评论(0)
推荐(0)
公告