MOOS学习笔记3--命令行 例程 /** * @code A simple example showing how to use a comms client问问怎么样 */ #include "MOOS/libMOOS/Comms/MOOSAsyncCommClient.h" #include "MOOS/libMOOS/Utils/CommandLineParser.h" bool OnConnect ( void *pParam ) { CMOOSCommC…
/* * A simple example showing how to use a comms client */ #include "MOOS/libMOOS/Comms/MOOSAsyncCommClient.h" #include "MOOS/libMOOS/Utils/CommandLineParser.h" #include "MOOS/libMOOS/Utils/ConsoleColours.h" #include "MO…
现在有一个从控制台读取输入的小程序: #include "../std_lib_facilities.h" int main() { cout << "Please enter your first name and age\n"; string first_name; int age; cin >> first_name; cin >> age; cout << "Hello, " <<…