摘要:
package main import ( "reflect" ) type User struct { ID int Name string } func main() { user := User{} t := reflect.TypeOf(user) if _, ok := t.FieldBy 阅读全文
摘要:
1 #include "stdafx.h" 2 #include <iostream> 3 using namespace std; 4 template<typename T> 5 //整数或浮点数皆可使用 6 void bubble_sort(T arr[], int len,int index=0) 7 { 8 int i, j; T temp; 9 for (i = 0; i < len 阅读全文