c++笔试题
文章平均质量分 55
Linger1998G
这个作者很懒,什么都没留下…
展开
-
c++专项练习题(二)
静态外部变量只在本文件内可用。请问这句话的说法是正确的吗? 如何定义函数指针? 函数返回值类型 (* 指针变量名) (函数参数列表); 参考阅读 const修饰指针总结: A: const 修饰指针指向的内容,则内容为不可变量。(如 const int *p = 8;可以理解为const 修饰int) B: const 修饰指针,则指针为不可变量。(如 int * const p = 8;可以理解为const 修饰p) C: const 修饰指针和指针指向的内容,则指针和指针指向的内容都为不可..原创 2022-04-13 10:15:28 · 195 阅读 · 0 评论 -
c++专项练习题
c++专项练习题 题目来源:牛客 以下哪个属于在预编译阶段执行____,以下哪些指令属于操作符___ a:malloc; b:++; c:#pragma; d:sizeof; e:#define 用printf函数输出一个字符串时,格式字符为%s,输出项可以是此字符串或存放此字符串的数组的数组名。请问这句话的说法是正确的吗? 有以下类定义 #include <iostream> using namespace std; class shape { public: vir原创 2022-04-12 16:38:20 · 516 阅读 · 0 评论 -
查找舆情热词
#华为机试2020.04.06第一题 查找舆情热词 参考代码: ‘’‘ #include #include #include<unordered_map> #include #include #include using namespace std; unordered_map<string, int> frequency_in_title; unordered_map<string, int> frequency_in_text; unordered_map<s原创 2022-04-07 17:00:22 · 507 阅读 · 0 评论