- 博客(307)
- 收藏
- 关注
原创 errno - number of last error
The header file defines the integer variable errno, which is set by system calls and some library functions in the event of an error to indicate what went wrong.
2022-09-07 11:39:07
365
原创 带符号整数的除法与余数
带符号整数的除法与余数Division of Signed Integers 陈硕 giantchen_AT_gmail_DOT_com 最近研究整数到字符串的转换,读到了 Matthew Wilson 的《Efficient Integer to String Conversions》系列文章。(http://synesis.com.au/publications.html 搜。带符号整数的除法与余数_陈硕的博客-优快云博客_有符号除法。
2022-09-03 14:02:01
249
原创 GDB用法
以下是gdb help中的解释Examine memory: x/FMT ADDRESS.ADDRESS is an expression for the memory address to examine.FMT is a repeat count followed by a format letter and a size letter.Format letters are o(octal), x(hex), d(decimal), u(unsigned decimal),t(binary)...
2022-08-28 21:01:50
177
原创 C语言 #define _INTSIZEOF(n)对齐的算法
如果数据总线是32根,那么每次只能取到4个字节的数据,可以使用该法方法,让地址总线每次都指向4的倍数的地址,
2022-08-16 19:23:08
381
原创 Qt学习 第37节:QString
在阅读QString文档时,出了一个词implicit sharing(copy-on-write),不是很懂,下面链接解释的表明白QT的隐式共享(Implicit Sharing)_道路与梦想-优快云博客_qbytearray 隐式共享为了最大化使用系统资源,更少的内存拷贝,QT中的很多类使用了隐式数据共享。当传递参数时,使用隐式共享类既安全又高效,因为只传递对象指针。当对象中的数据被修改时,对象才会被拷贝。也就是我们常说的“写拷贝”(copy-on-write)。概述: ...
2022-01-11 14:42:36
267
原创 Qt学习 第37节:QChar
为什么输出是falseqDebug()<<QChar::isNumber(4);boolQChar::isNumber(char32_tucs4)ucs4又是什么?字符编码(ucs2 ucs4 utf)_和尚的专栏-优快云博客_ucs2和ucs4
2022-01-11 02:44:55
271
原创 Qt数据类型
qint8:signed char有符号8比特数据qint16:signed short16位数据类型qint32:signed int32位有符号数据类型qint64:long long int 或(__int64)64位有符号数据类型,Windows中定义为__int64qintptr:qint32 或 qint64指针类型 根据系统类型不同而不同,32位系统为qint32、64位系统为qint64qlonglong: long long int 或(__int64)Wi
2022-01-10 23:41:02
244
原创 Qt学习 第36节:QMessageBox
void about(QWidget *parent, const QString &title, const QString &text)//(父类指针,窗口标题,提示文本)void aboutQt(QWidget *parent, const QString &title = QString())//(父类指针,窗口标题)QMessageBox::StandardButton critical(QWidget *parent, const QString &...
2022-01-07 20:44:20
1549
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人