加载中
无障碍XX指南

iOS无障碍编程指南http://www.siaa.org.cn/iosguideline.pdf iOS 视图控制器编程指南——支持无障碍http://www.siaa.org.cn/SupportingAccessibility.pdf 验证 iOS 应用的无障碍特http://ww...

2018/03/16 10:45
44
Golang program for implementation of Linked List

In computer science, a linked list is a linear collection of data elements, in which linear order is not given by their physical placement in memory. Each pointing to the next n...

2018/03/14 15:54
11
Golang program to implement Binary Tree

A binary tree is a tree data structure in which each node has at most two child nodes, usually distinguished as "left" and "right". Nodes with children are parent nodes, and chi...

2018/03/13 17:02
12
GO 快速排序

package main import (   "fmt"   "math/rand"   "time" ) func main() {   slice := generateSlice(20)   fmt.Println("\n ----- Unsorted ----- \n\n", slice)   quicksort(slice)   fmt.Printl...

2018/03/13 16:56
6
Golang Slice interface and array concatenation

package main import ( "fmt" ) func main() { // Slice Concatenation a := []int{1, 2, 3} b := []int{7, 12, 60} c := append(a, b...) fmt.Println(c) /...

2018/03/13 16:29
18
Example of Golang CRUD using MySQL from scratch

In this tutorial, we are going to see an example program to learn how to do database CRUD operations using Golang and MySQL. CRUD is an acronym for Create, Read, Update, and Del...

2018/03/13 14:58
62
cpp test

#include <iostream> #include <string> using namespace std; class RunClass{ public: RunClass() {} ~RunClass() {} public: int FuncTest1(const st...

cpp
2018/03/12 17:43
13
CPP 模板测试

#include <iostream> using namespace std; class A { public: void print() { cout << "class A!" << endl; } }; class B { public: vo...

2018/03/01 17:25
14
Go Hex 处理

// hexTest project main.go package main import (   "encoding/hex"   "fmt" ) func main() {   str := []byte("Hello World")   dstlen := hex.EncodedLen(len(str))   dst := make([]byte,...

2018/02/12 15:40
346
Go Json数据处理

// Json1 project main.go package main import (   "encoding/json"   "fmt"   "os" ) type response1 struct {   Page int   Data []string } type response2 struct {   Page int `json...

2018/02/11 14:56
37
Go 生成图片

package main import (   "image"   "image/color"   "image/draw"   "image/png"   "log"   "os" ) func main() {   rectangle := "rectangle.png"   rectImage := image.NewRGBA(image.Rect(0,...

2018/02/11 11:12
293
Go Slice 去重

package main import ( "fmt" ) func unique(intSlice []int) []int { keys := make(map[int]bool) list := []int{} for _, entry := range intSlice { if _, va...

2018/02/09 17:28
111
Go 语言中struct, slice , map 比较

package main import ( "fmt" "reflect" ) type testStruct struct { A int B string C []int } func main() { st1 := testStruct{A:100,B:"Australia",C:[]int{1,2,3...

2018/02/09 16:48
20
Go 语言 bytes.FieldsFunc 函数的使用

package main import (   "bytes"   "fmt"   "reflect"   "strings" ) func main() {   sentence := []byte("The Go language has built-in facilities, as well as library support, for writ...

2018/02/09 16:34
94
Go 实现简易 dir 命令

package main import (   "fmt"   "log"   "os" ) func readCurrentDir() {   file, err := os.Open(".")   if err != nil {     log.Fatalf("failed opening directory: %s", err)   }   defer fil...

2018/02/09 16:06
40
Go 结构体

package main import (   "fmt"   "reflect" ) type Book struct {   Id int   Title string   Price float32   Authors []string } func aboutStruct() {   book := Book{Id: 100, Tit...

2018/02/09 15:49
7
Go String to Json

// JsonTest project main.go package main import (   "encoding/json"   "fmt"   "os" ) var JSON = `{   "name":"张三",   "jobtitle" : "软件开发工程师",   "phone" : {     "home" : "123-4...

2018/02/09 11:05
114
Go 类型识别 array 与 slice

// Base project main.go package main import (   "fmt"   "reflect" ) func main() {   arr1 := [...]int{1, 2, 3, 4, 5, 6}   arr2 := []int{1, 2, 3, 4, 5, 6}   fmt.Println("arr1 Type :...

2018/02/09 10:42
8
Go 网络 TCP Client (一)

// Mynet project main.go package main import (   "fmt"   "io/ioutil"   "net"   "os" ) func main() {   str := "user.qzone.qq.com:443"   tcpaddr, err := net.ResolveTCPAddr("", str)   i...

2018/02/08 21:28
522
Go 时间基本处理

package main import (   "fmt"   "reflect"   "time" ) func main() {   now := time.Now()   fmt.Println("now = ", now)   fmt.Println("type of now = ", reflect.TypeOf(now))   year := no...

2018/02/08 15:48
38

没有更多内容

加载失败,请刷新页面

返回顶部
顶部