欢迎访问mehome的博客

Tomorrow is another day.
Fork me on GitHub
摘要: 一、简述 字符串,已经封装char,string内部存储着数据的指针。所以sizeof获取string大小时返回的不是数据实际大小。 二、常用功能 2.1数字转字符串 参考: https://www.cplusplus.com/reference/string/to_string/https://w 阅读全文
posted @ 2022-03-06 18:18 mehome 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 一、用途 QByteArray用来存储原始char类型数据。Qt中QString等类型数据内部都是通过QChar存储,所以通过.data()返回的数据都是QChar。 注意:把char类型数据存入QByteArray类型数据时,char数据需要以'\0'结尾。 二、常用功能 2.1char类型QBy 阅读全文
posted @ 2022-03-06 14:49 mehome 阅读(2316) 评论(0) 推荐(1) 编辑