变量:
| int |
| short |
| double |
| float |
| char |
| bool |
| wchar_t |
| long long |
int short 如下:
#includeusing namespace std; int main() { int a; short b; cout << sizeof(a) << ' ' << sizeof b; return 0; }
double float:
#include#include using namespace std; int main() { float a; double b; cout< bool char:
#include#include using namespace std; int main() { float a; double b; cout< 其他:
#include#include using namespace std; int main() { wchar_t a; long long c; cout< (注:void不可用)



