上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页
摘要: 1.01 事件 // main.cpp #include <SDL.h> #include <iostream> #define MY_EVENT_TYPE 10000 int main(int argc, char* argv[]) { // 1. 初始化SDL if (SDL_Init(SDL_ 阅读全文
posted @ 2019-06-01 14:55 osbreak 阅读(402) 评论(0) 推荐(0)
摘要: https://wiki.libsdl.org/SDL3/FrontPage 1.01 创建窗口/绘图 #include <SDL.h> #include <iostream> int main(int argc, char* argv[]) { // 1. 初始化SDL if (SDL_Init( 阅读全文
posted @ 2019-06-01 13:54 osbreak 阅读(146) 评论(0) 推荐(0)
摘要: gitlab 提交 Git global setup git config --global user.name "lial" git config --global user.email "lial@xxxxx.com" Create a new repository git clone git@ 阅读全文
posted @ 2019-05-07 11:17 osbreak 阅读(377) 评论(0) 推荐(0)
摘要: 网络 1.01 获得本地计算机主机名称/ip信息 { //初始化WinSock WSADATA WSAData; if (WSAStartup(MAKEWORD(2, 0), &WSAData) != 0) { return; } //获得本地计算机主机名称 char hostName[1024] 阅读全文
posted @ 2019-04-15 13:39 osbreak 阅读(211) 评论(0) 推荐(0)
摘要: #include <ws2tcpip.h> #include <mswsock.h> #include <windows.h> #include <iostream> #include <vector> #include <thread> #include <mutex> #include <con 阅读全文
posted @ 2019-04-09 22:47 osbreak 阅读(216) 评论(0) 推荐(0)
摘要: package main import ( "fmt" "reflect" ) type Student struct { name string age int } func (s Student) Set(name string, age int) { s.name = name s.age = age } func test(b... 阅读全文
posted @ 2019-03-21 22:49 osbreak 阅读(144) 评论(0) 推荐(0)
摘要: 1、下载安装 git 2、生成 SSH 密钥 ssh-keygen -t rsa -C "email@com" -b 4096 3、配置gitlab 增加 SSH 密钥. 4、配置 git config --global http.sslVerify false(不然无法push) 阅读全文
posted @ 2019-03-18 16:54 osbreak 阅读(553) 评论(0) 推荐(0)
摘要: 1.01 docker hub搭建 1.0 docker hub 地址:https://github.com/goharbor/harbor/releases 下载: harbor-offline-installer-v2.12.0.tgz 1.02 harbor默认工作方式是http,只能在页面访 阅读全文
posted @ 2019-03-17 18:22 osbreak 阅读(257) 评论(0) 推荐(0)
摘要: 下载 openssl-1.1.0i.tar.gz ./config no-asm shared –prefix=/usr/local/openssl –cross-compile-prefix=arm-none-linux-gnueabi- make make install 阅读全文
posted @ 2019-03-12 09:21 osbreak 阅读(1349) 评论(0) 推荐(0)
摘要: package main import ( "encoding/json" "fmt" ) /* { "company":"itcast" "":[ "go" "c++" ], "isok":"ok" "price":"666" } */ //成员变量名首字母必须大写 type IT struct {... 阅读全文
posted @ 2019-03-10 23:38 osbreak 阅读(264) 评论(0) 推荐(0)
摘要: 一、国际化 1.01 gettext gettext:消息编目、用于完成消息转换和编目管理。 import gettext 1.02 locale locale:文化本地化API、货币转换、格式化数字、日期和时间。 import locale 二、工具 2.01 pydoc pydoc:为Pytho 阅读全文
posted @ 2019-02-26 17:00 osbreak 阅读(275) 评论(0) 推荐(0)
摘要: panic 阅读全文
posted @ 2019-02-19 16:56 osbreak 阅读(305) 评论(0) 推荐(0)
摘要: Go语言中的defer语句也非常独特。 defer语句仅能被放置在函数或方法中。 它由关键字defer和一个调用表达式组成。 调用表达式所表示的既不能是对Go语言内建函数的调用 也不能是对Go语言标准库代码包unsafe中的那些函数的调用。 实际上,满足上述条件的调用表达式被称为表达式语句。 func readFile(path string) ([]byte, error) { ... 阅读全文
posted @ 2019-02-19 16:38 osbreak 阅读(294) 评论(0) 推荐(0)
摘要: select语句属于条件分支流程控制方法,不过它只能用于通道。 select语句中的case关键字只能后跟用于通道的发送操作的表达式以及接收操作的表达式或语句。 ch1 := make(chan int, 1) ch2 := make(chan int, 1) select { case e1 := <-ch1: fmt.Printf("1th case is select... 阅读全文
posted @ 2019-02-19 16:23 osbreak 阅读(475) 评论(0) 推荐(0)
摘要: 指针操作涉及到两个操作符——&和*。 表达式&p的求值结果是p的指针。 地址操作符*被应用到一个指针值上时会取出该指针指向的值。 它们可以被视为相反的操作。 *出现在一个类型之前(如*Person和*[3]string)时就不能被看做是操作符了,而应该被视为一个符号。 如此组合而成的标识符所表达的含义是作为第二部分的那个类型的指针类型。 一个指针类型拥有以它以及以它的... 阅读全文
posted @ 2019-02-19 16:04 osbreak 阅读(151) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 18 下一页