DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: wjy13061029975
今日帖子: 31
在线用户: 9
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 dalas (dalas) ★☆☆☆☆ -
普通会员
2021/9/19 11:41:24
标题:
请大神出手翻译为delphi,谢谢!! 浏览:1179
加入我的收藏
楼主: typedef struct {
  char String[4 * 4];
} IP_ADDRESS_STRING, *PIP_ADDRESS_STRING, IP_MASK_STRING, *PIP_MASK_STRING;

主要是 char String[4 * 4] 我不懂是啥
----------------------------------------------
-
作者:
男 dalas (dalas) ★☆☆☆☆ -
普通会员
2021/9/19 12:16:18
1楼: array[0..4 * 4 - 1] of AnsiChar
是这样吧
----------------------------------------------
-
作者:
男 hexi (Hexi) ★☆☆☆☆ -
盒子活跃会员
2021/9/19 12:26:48
2楼: type
  IP_ADDRESS_STRING=record
    &String:array[0..4*4-1] of AnsiChar;
  end;

  PIP_ADDRESS_STRING=^IP_ADDRESS_STRING;

 IP_MASK_STRING =IP_ADDRESS_STRING;
 PIP_MASK_STRING=PIP_ADDRESS_STRING;
----------------------------------------------
-
作者:
男 keymark (嬲) ▲▲▲△△ -
普通会员
2021/9/19 13:52:39
3楼: C
https://c.runoob.com/compile/11/
#include <stdio.h>

typedef struct {
  char String[4 * 4];
} IP_ADDRESS_STRING, *PIP_ADDRESS_STRING, IP_MASK_STRING, *PIP_MASK_STRING;

int main()
{
   /*  Write C code in this online editor and run it. */
  printf("sizeof(IP_ADDRESS_STRING):%d\n",sizeof(IP_ADDRESS_STRING));
    return 0;
}

sizeof(IP_ADDRESS_STRING):16
----------------------------------------------
[alias]  co = clone --recurse-submodules  up = submodule update --init --recursiveupd = pullinfo = statusrest = reset --hard懒鬼提速https://www.cctry.com/>http://qalculate.github.io/downloads.htmlhttps://www.cctry.com/
作者:
男 keymark (嬲) ▲▲▲△△ -
普通会员
2021/9/19 14:01:00
4楼: C++
https://c.runoob.com/compile/12/
#include <iostream>
using namespace std;

typedef struct {
  char String[4 * 4];
} IP_ADDRESS_STRING, *PIP_ADDRESS_STRING, IP_MASK_STRING, *PIP_MASK_STRING;


int main()
{
   printf("sizeof(IP_ADDRESS_STRING):%d\n",sizeof(IP_ADDRESS_STRING));
   return 0;
}

sizeof(IP_ADDRESS_STRING):16
----------------------------------------------
[alias]  co = clone --recurse-submodules  up = submodule update --init --recursiveupd = pullinfo = statusrest = reset --hard懒鬼提速https://www.cctry.com/>http://qalculate.github.io/downloads.htmlhttps://www.cctry.com/
作者:
男 keymark (嬲) ▲▲▲△△ -
普通会员
2021/9/19 14:11:33
5楼: 各种编译器看汇编代码 结果我就不贴了太多了 也不知道 typedef struct 是哪个编译器的?
(ADblock打不开 直接隐私模式可正常使用)https://gcc.godbolt.org/
----------------------------------------------
[alias]  co = clone --recurse-submodules  up = submodule update --init --recursiveupd = pullinfo = statusrest = reset --hard懒鬼提速https://www.cctry.com/>http://qalculate.github.io/downloads.htmlhttps://www.cctry.com/
作者:
男 dbyoung (dbyoung) ★☆☆☆☆ -
普通会员
2021/9/19 15:12:33
6楼: Delphi 不是自带吗,还需要翻译?
此帖子包含附件:
PNG 图像
大小:203.7K
----------------------------------------------
武汉天气不好
作者:
男 keymark (嬲) ▲▲▲△△ -
普通会员
2021/9/19 16:23:39
7楼: 估计是没源码得社区版吧?
----------------------------------------------
[alias]  co = clone --recurse-submodules  up = submodule update --init --recursiveupd = pullinfo = statusrest = reset --hard懒鬼提速https://www.cctry.com/>http://qalculate.github.io/downloads.htmlhttps://www.cctry.com/
作者:
男 dalas (dalas) ★☆☆☆☆ -
普通会员
2021/9/20 10:34:55
8楼: 感谢楼上各位,问题解决了。

typedef struct {
  char String[4 * 4];
} IP_ADDRESS_STRING, *PIP_ADDRESS_STRING, IP_MASK_STRING, *PIP_MASK_STRING;
是在 docs.microsoft.com 查的资料,我也不知道是哪个编译器,就是看不懂
----------------------------------------------
-
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行85.9375毫秒 RSS