使用\x即可
#include <iostream> int main(){ char* data = (char*)"\x01\x00\x00\x0f"; std::cout << data ;}
京公网安备 11010502049817号