#include <uf.h> #include <uf_obj.h> #include <uf_part.h> using namespace NXOpen; using std::string; using std::exception; using std::stringstream; using std::endl; using std::cout; using std::cerr; //定义一个结构体记录 struct group { CString text
结构体一个结构体(`struct`)就是一个字段的集合. 将来要使用它向java .C# 中的class 有相同的地位 struct 可以用来值传递 同时可以通过引用传递参数(地址) java C# 对于class只能引用传递 结构体定义 type YourName struct 例如: type Vertex struct { X int Y int} ------------------------------------------ package main import "fmt&qu