- 博客(3)
- 收藏
- 关注
原创 2021-08-11
输入10进制输出八进制#include <stdio.h>#include <malloc.h>#include <string.h>#include <math.h>static int index = 0;int* decimalismConvertBinary(int number){int* tempBinaryArray = (int*)calloc(128, sizeof(int));int* binaryArray = (int
2021-08-11 17:52:00
108
原创 2021-04-17
QString str = “中文”;qDebug() << str ;乱码qDebug() << str.toUtf8().data();转为UTF-8 就不会乱码了
2021-04-17 23:38:23
108
原创 2021 . 3 .12
关于第二个scanf被自动执行第二个scanf会自动读取键盘缓存区的数值,导致无法得到想要的数。scanf(" %c",&c);在%c前面加上空格可以解决。注:fflush(stdin);rewind(stdin);这两种方法无法清除键盘缓存区数值。(试过清除不了,不知道是不是Linux的原因)...
2021-03-12 14:51:50
93
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人