改Makefile .PHONY:all all:server_netcal client_netcal server_netcal:main.cc g++ -o $@ $^ -std=c++17 -ljsoncpp client_netcal:TcpClient.cc g++ -o $@ $^ -std=c++17 -ljsoncpp .PHONY:clean clean: rm -f server_netcal client_netcal 改Protocol.hpp #pragma once #include "Socket.hpp" #include <iostream> #include <string> #include <memory> #include<jsoncpp/json/json.h> #include<functional> // 实现一个自定义的网络版本的计算器 using namespace SocketModule; // 约定好各个字段的含义,本质就是约定好协议! // client -> server // 如何要做序列化和反序列化: // 1....
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Get in touch with Class
Contact Class, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack