如何102:330:3133:76531:451:000:12:44412通过" :"字符拆分诸如" " 的字符串,并将所有数字放入一个int数组(数字序列始终为8长)最好不使用外部库,如boost.
另外,我想知道如何在处理之前从字符串中删除不需要的字符,例如"$"和"#"?
我已正确编译了boost二进制文件并遵循了所有说明,但是我遇到了很多错误,我不知道为什么!
这是我的'包含'设置:

这是我用来测试boost的代码:
#include <boost/asio.hpp> // include boost
#include <iostream>
using namespace std;
using namespace boost::asio; // save tons of typing
// These are the values our port needs to connect
#ifdef _WIN32
// windows uses com ports, this depends on what com port your cable is plugged in to.
const char *PORT = "COM4";
#else
// *nix com ports
const char *PORT = "dev/ttyS3";
#endif
// Note: all the following except BAUD are the exact same as the default …Run Code Online (Sandbox Code Playgroud) 我需要使用youtube-dl从频道下载新视频,但请记住下次不下载它们,只下载尚未下载的视频.我怎么能这样做?