我试图声明一个char数组的大小,我需要使用声明为size_t的变量的值来声明该大小.无论如何,我可以将size_t变量强制转换为int,以便我可以这样做吗?
c++ int casting size-t
c++ ×1
casting ×1
int ×1
size-t ×1