我注意到现代的C和C++代码似乎size_t代替int/ unsigned int几乎无处不在 - 从C字符串函数的参数到STL.我很好奇这个原因及其带来的好处.
size_t
int
unsigned int
c c++ size-t
c ×1
c++ ×1
size-t ×1