![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
普通网友
这个作者很懒,什么都没留下…
展开
-
C++ 基础数据类型大小
#include "stdafx.h" //预编译头,提高编译速度#include //标准输入输出头文件using namespace std; //使用标准库的标识符int main(){ cout << "Hello World" << endl; cout ::min() ::max() << endl; cout ::min() ::max() << endl;原创 2017-06-15 20:43:13 · 174 阅读 · 0 评论 -
华为上机试题
题目描述:某个打印机根据打印队列执行打印任务。打印任务分为九个优先级,分别用数字1~9表示,数字越大优先级越高。打印机每次从队列头部取出第一个任务A,然后检查队列余下任务中有没有比A优先级更高的任务,如果有比A优先级高的任务,则将任务A放到队列尾部,否则就执行任务A的打印。请编写一个程序,根据输入的打印队列,输出实际的打印顺序。输入描述:函数原型:void printOrder(const int...原创 2018-06-12 19:58:43 · 530 阅读 · 0 评论 -
C++中多重继承的内存分布(网易面试题)
#include <iostream>using namespace std;class A{ public: int a;};class B{ public: int b;};class C : public A, public B{ public: int c;};int main...原创 2018-09-04 11:19:18 · 101 阅读 · 0 评论