摘要:
package test import "github.com/plandem/xlsx" //学生结构体 type Stu struct { Name string Age string } //读取表中数据,返回list func RedExcel()([]Stu) { filePath :=" 阅读全文
摘要:
type stack struct { nums []int }// type queue struct { s1 *stack s2 *stack } //初始化栈 func newStack() *stack { return &stack{ nums: []int{}, } } //初始化队列 阅读全文
摘要:
package main import ( "fmt" ) //定义栈结构 type Stack struct { StrArray []string Size int Top int } func NewStack(size int) *Stack { return &Stack{StrArray 阅读全文
摘要:
package main import ( "fmt" ) //队列:先进先出 type Queue struct { StrArray []string Size int Pos int } func NewQueue(size int) *Queue { return &Queue{StrArr 阅读全文