AmaZhao
AmaZhao
全部文章
分类
芝士(2)
题解(24)
归档
标签
去牛客网
登录
/
注册
AmaZhao的博客
全部文章
(共24篇)
题解 | #疫情死亡率#
1 输入一个值之前 需要先行对其进行声明形式 “int c = d = 0”的写法是大错特错 因为其没有对d进行声明 2在想要限定输出几位小数时,可以使用 头文件中的 setprecision() 和 fixed 来指定输出小数位数。 #include #include using namesp...
C++
2025-09-15
0
12
题解 | #乘法表#
重点:转义符的使用 \加在双引号、\n的前面可以使这些符号失去功能不被读取。 #include using namespace std; int main(){ cout << "printf("Hello world!\n");" <<endl << "cou...
C++
2025-09-11
0
16
题解 | #乘法表#
这题是我第一次接触cpp的条件判断 对于观察得出第一列 第二列的前三个 第三列的第一个的等号后都有空格 目标就转变为如何将上述条件转为条件判断 #include using namespace std; int main(){ for (int i = 1; i <= 9; i++){ fo...
C++
2025-09-11
0
16
题解 | #小飞机#
1 在c++中 回车无法被print出来 想要print必须使用endl #include using namespace std; int main() { cout << " ** "<< endl << " ** "<...
C++
2025-09-11
0
17
首页
上一页
1
2
3
下一页
末页