现代嵌入式C教程:std::variant写这篇文章前请想像一个场景:你有一个盒子,有时候装 int,有时候装 std::string,有时候装别的东西。传统 union 是那种老派盒子——节省空间但没有标签,容易把 int 当成 std::s…
static关键字详解static
public class Student {private static int age;private double score;static void main(String[] args) {Student s1 = new Student();System.out.println("==================");S…