摘要:
参考:http://www.cnblogs.com/dongsheng/p/4011145.html 阅读全文
摘要:
1.Ctrl+F5 2.结尾添加 getchar() 3.结尾添加 system("pause"); 参考:http://jingyan.baidu.com/article/5552ef473b08f3518ffbc931.html 阅读全文
摘要:
1.你建立的工程使用了预编译功能, cpp最前边要留一行这样的内容: #include "StdAfx.h" 2.在VS的solution explorer中右键checklist.pb.cc-->属性-->预编译头(precompiled header)->预编译头(precompiled hea 阅读全文
摘要:
1.定义对象之前,编译器必须看到完整的类定义,你的代码std::fstream out("person.pb", ios::out | ios::binary | ios::trunc); 中的std::fstream只是声明了,还没有定义,需要包含头文件。 阅读全文
摘要:
参考: C++文件读写详解(ofstream,ifstream,fstream):http://blog.csdn.net/kingstar158/article/details/6859379 fstream的使用方法介绍:http://www.cppblog.com/saga/archive/2 阅读全文
摘要:
Protocol Buffers 官网下载地址:https://developers.google.com/protocol-buffers/docs/downloads Protocol Buffers github 地址:https://github.com/google/protobuf Go 阅读全文