冷酷薯片

文章
4
资源
0
加入时间
3年1月8天

Typescript学习 类型守卫

in 关键字interface Admin { name: string privileges: string[]}interface Employee { name: string startDate: Date}type UnKnownEmployee = Employee | Adminfunction printEmployeeInformation(emp: UnKnownEmployee) { console.log("Name: "

线性表的插入

#include <stdio.h>#include <stdlib.h>#define MAXSIZE 20#define OK 1#define ERRO 0typedef int ElemType;//元素类型重命名typedef int Status;//状态重命名/*创建线性表结构体 ...