百度
紫光
大疆
爱奇艺
科大讯飞
cvte
蔚来
大华
乐鑫
联发科
相关文章:
科大讯飞C++开发岗面试总结-正式批
注:以下为个人认为笔试中较难的题目及涉及的知识点
(1)数据表,trunate和delete的计数问题
(2)概率考了4,5道
(3)判断过程调用了什么函数
class Foo()
{
Foo();
}
Foo f = Foo();
(4)std::cin和std::cout是属于什么性质的 对象
(5)const在编译过程中能检查错误还是在运行中检查错误 编译就可以确定
(6)进程互斥锁PV伪代码表示
(7)linux的软连接和硬链接命令 软连接 ln -s 硬链接ln
(8)C++可以用(void *)指针进行强转吗
(9)4无向图,深度优先遍历
(10)数据库SELECT,GROUP,ORDER
(11)std::shrare_ptr是一个类?对
(12)将一个函数作为参数传入另外一个函数,这样可以吗
测试代码
#include "stdafx.h"
#include<iostream>
#include<Windows.h>
using namespace std;
string test()
{
string str("hello");
return str;
}
void out_test(string str)
{
cout << str.data() << endl;
}
int main()
{
out_test(test());
system("pause");
return 0;
}
(13)路由器分流
(14)ARP请求是()发送,响应是()发送 广播 单播
(15)double *p = new double[5];cout<<sizeof(*p);结果是多少
结果为8,因为其返回的是double的大小
测试代码
#include "stdafx.h"
#include<iostream>
#include<Windows.h>
using namespace std;
int main()
{
double *p = new double[5]; cout << "*p=" << sizeof(*p) << endl;
double *x = (double *)malloc(sizeof(double)); cout << "*x=" << sizeof(*x) << endl;
int d = sizeof(1);
cout << "缺省(int)大小测试:" << d << endl;
system("pause");
return 0;
}