2021
02-23
02-23
C++ 数据类型强制转化的实现
C++常见类型主要为//一个字节等于8bit[signed]int//字节数为4unsigned[int]//字节数为4short[int]//字节数2unsignedshort[int]//字节数2long[int]//字节数4unsignedlong[int]//字节数4[signed]char//字节数1unsignedchar//字节数1float//字节数4double//字节数8longlong[int]//字节数8unsignedlonglong[int]//字节数8size_t//字节数4-8如下C++11代码#include<bits/stdc++.h>usingn...
继续阅读 >