Java2OP for Delphi XE10:Java SDK与Object Pascal无缝集成方案
2026/10/14 22:17:47
#include<stdio.h>#include<stdbool.h>#include<limits.h>#include<float.h>intmain(){// 1. 基本整数类型intage=25;printf("1. int类型: %d\n",age);// 2. 短整数shorttemperature=-10;printf("2. short类型: %hd\n",temperature);// 3. 长整数longpopulation=7800000000L;printf("3. long类型: %ld\n",population);// 4. 长长整数longlongbigNumber=9223372036854775807LL;printf("4. long long类型: %lld\n",bigNumber);// 5. 无符号整数unsigned