1、 编译阶段 C++语言编译主要分为四个阶段: 源代码: 1 #include <stdio.h> 2 #include <assert.h> 3 4 #define paster( n ) printf( "token " #n" = %d\n ", token##n ) 5 int add(i ...
分类:
编程语言 时间:
2021-01-11 11:14:15
阅读次数:
0
LXC:其名称来自Linux软件容器(Linux Containers)的缩写.LXC利用cgroups与名称空间的功能,提供应用软件一个独立的操作系统环境。LXC不需要Hypervisor这个软件层,软件容器(Container)本身极为轻量化,提升了创建虚拟机的速度。严格来说不算是虚拟化技术,只 ...
分类:
其他好文 时间:
2021-01-11 10:40:12
阅读次数:
0
double string_to_float(uint8_t *str){ uint8_t i,j,k,negative=0; #define s_temp str double result=0.0,result_1=0.0; for(i=0;i<10;i++) { j=str[i]; if(j= ...
分类:
其他好文 时间:
2021-01-11 10:28:36
阅读次数:
0
this指向的对象是运行时所在的对象,而不是表面代码中所处的对象 以下三种情况,this指向全局对象 情况一 (obj.foo = obj.foo)() // window 情况二 (false || obj.foo)() // window 情况三 (1, obj.foo)() // window ...
分类:
其他好文 时间:
2021-01-08 11:39:52
阅读次数:
0
基础类型:number string boolean undefined null 引用类型:object array function 基本类型和复杂类型区别: 1.存储不同:基本类型的存储,是将值存到栈中;复杂类型的存储,将值存到堆中,将堆的地址存到栈中 2.赋值不同:基本类型的赋值,将值复制一 ...
分类:
其他好文 时间:
2021-01-08 11:20:25
阅读次数:
0
转自:https://blog.csdn.net/rong_toa/article/details/110845945 《ARM SMMU原理与IOMMU技术(“VT-d” DMA、I/O虚拟化、内存虚拟化)》 《提升KVM异构虚拟机启动效率:透传(pass-through)、DMA映射(VFIO、 ...
分类:
系统相关 时间:
2021-01-07 12:01:57
阅读次数:
0
1.单链表: 1 #pragma once 2 #ifndef _List_H 3 #include<stdio.h> 4 #include<stdlib.h> 5 #define ElementType int 6 7 struct Node; 8 typedef struct Node* Ptr ...
分类:
编程语言 时间:
2021-01-06 12:20:27
阅读次数:
0
二分查找可以理解为折纸,对半折。 主要:你需要主要是二分查找的数据是有序的。 它的时间复杂度:log2(n) 对应的算法师折半查找法: 代码: #include <stdio.h> #include <stdlib.h> #define keyType int typedef struct { ke ...
分类:
其他好文 时间:
2021-01-06 11:59:08
阅读次数:
0
1 #define IO std::ios::sync_with_stdio(0) 2 #include <bits/stdc++.h> 3 using namespace std; 4 #define mk make_pair 5 #define pb push_back 6 const int ...
分类:
其他好文 时间:
2021-01-06 11:49:40
阅读次数:
0
使用邻接矩阵存储加权图,无穷大使用常数MAXLEN代表,然后使用Dijkstra方法求取最短路径 1 #include <stdio.h> 2 3 #define MAXLEN 1000 4 int cost[7][7]; 5 int dist[7]; 6 7 void creategraph(in ...
分类:
编程语言 时间:
2021-01-06 11:45:19
阅读次数:
0