logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

c++面试题(亲测常问)

注意:此题为我自己面试被问到的,及一些摘抄的,如有侵权请联系我马上删除!1.2.32位指针地址所占字节数为四举例说明:char*p;char test[10];p=test;sizeof(p)=4(32位系统) //实质是求指针类型所占字节数,32位对应4字节,64位对应8字节sizeof(*p)=1 //实质是求指针所指的内容所在字节数,*p=char[0],当然所指内容大小等于1字节sizeo

#c++#开发语言
简单选择排序算法代码实现

#include<iostream>using namespace std;void selcet(int arry[]);int length;int main() {int a[] = { 1,-17,13,15,-19,10,99,123,124,1000 };length = sizeof(a) / sizeof(int);for (int i = 0; i < leng

#排序算法#蓝桥杯#c++
运算符重载

#include<iostream>using namespace std;class complex{public:complex() {real = 0;imag = 0;}void display();complex(int a, int b) :real(a), imag(b) {}friend complex operator +(complex& c1, compl

#c++
到底了