随笔分类 - 基础知识
摘要:c++里的sin()函数的参数用的是弧度制,在使用时要手动转变为角度制 比如现要求sin(30度) = 0.5
阅读全文
摘要:课代表笔记https://www.acwing.com/file_system/file/content/whole/index/content/1120024/ 主要复习下空间复杂度,之后会用到 基础的单位换算 每个0, 1 是 1 位 1 字节 (Byte) = 8 位 (bit) 1 KB =
阅读全文
摘要:这几道题目的运行结果是多少 1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() { 4 cout << "1: " << 7 / 4 << endl; 5 cout << "2: " << (-7) / 4 << endl;
阅读全文
摘要:问题描述: 假如有一行用空格隔开的字符串的话,如何提取出每一个字符串 比如输入 abc def ghi 然后我们又需要存下来每一个字符串的话,需要怎么做。 方法一:双指针算法。 1 #include <bits/stdc++.h> 2 using namespace std; 3 int main(
阅读全文
摘要:1 #include <bits/stdc++.h> 2 using namespace std; 3 int main() { 4 cout << "int的最大最小值" << endl; 5 cout << INT_MAX << endl; 6 cout << INT_MIN << endl;
阅读全文
摘要:参考于https://blog.csdn.net/Hachi_Lin/article/details/79772451 1.strcat()格式: strcat(字符数组1,字符数组2)作用: 字符串连接函数,其功能是将字符数组2中的字符串连接到字符数组1中字符串的后面,并删去字符串1后的串结束标志
阅读全文

浙公网安备 33010602011771号