package main
type student struct {
id int
name string
}
func main() {
//顺序初始化
//var s1 = student{1,"zhnag","a",1,"d"}
//自动推到类型
//s2 := student{name:"张"}
//s3 := student{name:"张"}
//var s4 student
//s4 = s3
//fmt.Println(s4)
//fmt.Println(s2 == s3)
//s2.id = 1
//s2.age = 12333
//fmt.Println(s2 == s3)
//fmt.Println(s2)
//fmt.Printf("%p\n",&s2)
//fmt.Printf("%p\n",&s2.id)
//fmt.Printf("%p\n",&s2.name)
//var arr = [3]student{
// {1,"礼拜"},
// {1,"sdfsf"},
//}
//for i := 0; i < len(arr); i++ {
// fmt.Println(arr[i])
//}
//fmt.Println(arr)
//arr[2].name = "zhang";
//fmt.Println(arr)
}