求教~~size_t和int 类型的区别,可以混用么
求达人帮助,谢了先~
typedef unsigned int size_t;
#include <iostream> #include <climits> using namespace std; int main() { cout << sizeof(int) * CHAR_BIT << endl; cout << sizeof(size_t) * CHAR_BIT << endl; }