摘要: package MyStudents;message Student{optional string name = 1;enum enSex{MALE = 0;FEMALE = 1;}optional enSex student_sex= 2 [default = MALE];};message Classroom{repeated Student students = 1;};#include using namespace std;#include #include "Student.pb.h" #pragma comment(lib, "libprotoc. 阅读全文
posted @ 2013-07-02 20:14 Predator 阅读(689) 评论(0) 推荐(0) 编辑