Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func insert(T *arr, tot *int){
- var confirm string
- i:=0
- i=*tot
- fmt.Print("::::::::::::::::::::::::::::::::::::::::::::\n")
- fmt.Print("Apakah Ingin Input : ")
- fmt.Scan(&confirm)
- fmt.Print("::::::::::::::::::::::::::::::::::::::::::::\n")
- for (confirm != "no") && (i < N) {
- id++
- T[i].id = id
- fmt.Print("Sekolah : ")
- fmt.Scan(&T[i].sekul)
- fmt.Print("Kelas : ")
- fmt.Scan(&T[i].kls)
- fmt.Print("Pelajaran : ")
- fmt.Scan(&T[i].pel)
- fmt.Print("Semester : ")
- fmt.Scan(&T[i].smt)
- fmt.Print("Silabus : ")
- fmt.Scan(&T[i].silb)
- fmt.Print("Materi : ")
- fmt.Scan(&T[i].mat)
- *tot++
- i++
- fmt.Print("::::::::::::::::::::::::::::::::::::::::::::\n")
- fmt.Print("Apakah anda ingin input lagi : ")
- fmt.Scan(&confirm)
- fmt.Print("::::::::::::::::::::::::::::::::::::::::::::\n")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement