###一、ISA结构 struct objc_object { private: isa_t isa; }; union isa_t { Class cls; uintptr_t bits; #if defined(ISA_BITFIELD) // ISA_BITFIELD意为 isa位域 stru ...
分类:
其他好文 时间:
2021-06-02 18:18:32
阅读次数:
0
反射提供描述程序集、模块和类型的对象(Type 类型)。 可以使用反射动态地创建类型的实例,将类型绑定到现有对象,或从现有对象中获取类型,然后调用其方法或访问器字段和属性。 如果代码中使用了特性,可以利用反射来访问它们 namespace assembly_name { public class a ...
Leetcode 第243场周赛 前两题简单。 第三题一个模拟,容易边界处理不好。 第四题dp,卡精度。 第一题 https://leetcode-cn.com/problems/check-if-word-equals-summation-of-two-words/ 直接算就行。 class So ...
分类:
其他好文 时间:
2021-06-02 18:17:06
阅读次数:
0
JAVA 暴力(BFS): public final int[] findBall(int[][] grid) { int len = grid[0].length; int[] balls = new int[len]; for (int i = 0; i < balls.length; i++) ...
分类:
其他好文 时间:
2021-06-02 18:14:01
阅读次数:
0
Aimee 显然可以证得,如果把所有可以交换的点之间连边,那么他们构成了联通块,对于每一个联通块,你可以让他们成为你想要的任何顺序 那就是找联通块,块内依次排序即可 #include<iostream> #include<cstring> #include<cstdio> #include<queu ...
分类:
Web程序 时间:
2021-06-02 18:13:46
阅读次数:
0
编译器为class A{}生成的函数 1 class A 2 { 3 public: 4 A(); //缺省构造函数 5 A(const A&rhs); //拷贝构造函数 6 ~A(); //析构函数 7 A& operator=(const A&rhs); //赋值运算符 8 A* operato ...
分类:
编程语言 时间:
2021-06-02 18:11:51
阅读次数:
0
redis的List存储结构:一个链表加上压缩列表实现的 redis c语言源码双向循环列表# define QL_FILL_BITS 16# define QL_COMP_BITS 16# define QL_BM_BITS 4 /typedef struct quicklist { quickl ...
分类:
其他好文 时间:
2021-06-02 18:11:23
阅读次数:
0
自动化测试的开始 一.测试的基础理论: 检测实际输出与预测输出的压差异,衡量软件的质量 二.软件的开发模型与生命周期: 2.1软件开发模式 瀑布模型 快速原型模型 螺旋模型' 2.1.1破布模型 (1).瀑布模型的特点: ? 是线性模型的一种,每一个阶段只执行一次 ? 文档驱动 ? (2)瀑布模型的 ...
分类:
其他好文 时间:
2021-06-02 17:43:38
阅读次数:
0
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>sss</ti ...
分类:
其他好文 时间:
2021-06-02 17:41:38
阅读次数:
0
#include<bits/stdc++.h> using namespace std; const int N = 200000,Inf=0x7fffff; struct edge{ int u,v,w; edge(int a,int b,int c){ u=a,v=b,w=c; } }; vec ...
分类:
其他好文 时间:
2021-06-02 17:40:23
阅读次数:
0