当前位置:网站首页>编程洗衣机:字符串输出后的乱码
编程洗衣机:字符串输出后的乱码
2022-08-09 07:59:00 【快乐学习吧】
problem:
字符数组中间插入字符串,其余赋值方式后移。最后无字符串结束符,输出时乱码。
method:
最后一位赋值’\0’.
边栏推荐
猜你喜欢
随机推荐
主键id,Snowflake雪花算法,优点:生成有顺序的id,提高数据库的性能
Introduction to the Endpoint
[STL]stack与queue
C语言笔记 学习预处理 学习宏定义
IO字节流读取文本中文乱码
Set集合
LeetCode: 876. The middle node of the linked list —— simple
SSM integration development case
在今天这个特殊的日子,我想要开始我的代码技术博客之路
The String class objects created by the JVM memory allocation and the difference between equals and = =
Shell编程之正则表达式
Collection 接口 & List 接口
Kotlin Coroutines - Exception Handling
Redis(七) 主从复制(二)哨兵模式
2019 Nanchang Internet Competition Question C, Hello 2019
Shell之函数与数组
Unity 3D模型展示框架篇之资源打包、加载、热更(二)
MDK Keil debug时, watch1中全局变量不更新
oracle权限问题
Data storage implementation of SDRAM and read and write operations on its data




![[STL]string](/img/25/c53cac1993809266f91662633ecb86.png)



