简体   繁体   中英

Print out 26 bytes from an byte array

response is defined as Byte Array. I know how to print out the full response:

 printf("Response: %s", response);

Or for example only the penultimate byte:

 response[lenr - 2]

But how can i print out the response from the 1 to the 26 Byte? Thanks

由于您已标记此C ++,因此请使用C ++ I / O

std::cout.write(response, 26);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM