leetcode-157-Read N Characters Given Read4

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/zem_nezer/article/details/86674792

It is hard to know the function:
void read(char *buf, int n): the buf is the target string, and n is the ideal number to read
int read4(char *buf): return the bytes it read and put the char to buf.

So very time just read the buffer and output the total result

猜你喜欢

转载自blog.csdn.net/zem_nezer/article/details/86674792