Lime

Lime

V2EX member #64042, joined on 2014-06-02 10:13:00 +08:00
Per Lime's settings, the topics list is hidden
Deals info, including closed deals, is not hidden
Lime's recent replies
@ghm2mail 老哥能详细说下不
@ghm2mail 这个想法很棒,微信是一个入口,但是除了聊天我还没想到更好的应用场景
该贴已经起不到大家对 AI 的一些积极讨论的作用了,可能帖子截图让人误以为推广的原因?先下沉吧。
哈哈,大家的愿望是美好的,不过有点超出 AI 能力范围了
有推广嫌疑的话,大家可以无视那些截图和视频(虽然本无此意,我始终认为一个好产品是靠用户口碑建立的,而不是靠这些),真心求问大家的对现在 AI 产品的一些看法
@Livid 可以帮移动下吗
写这个时候,只是想让整个过程完整点。我看下怎么移动到推广节点。
Jan 4, 2021
Replied to a topic by GromHellscream 问与答 请教大家一个 C 指针的问题
@maxhhg fixed
Jan 3, 2021
Replied to a topic by GromHellscream 问与答 请教大家一个 C 指针的问题
Jan 3, 2021
Replied to a topic by GromHellscream 问与答 请教大家一个 C 指针的问题
```c
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[]) {
// 看起来你是在 x86_64 上来跑的, int 为 4-bytes, 此时内存布局为:
//
// a[0]
// ↓
// 69000000 af000000 e5100000 2c100000
int a[4] = {150, 250, 350, 450};

int * c = a;
printf("1: a[0] = %d, a[1] = %d, a[2] = %d, a[3] = %d\n", a[0], a[1], a[2], a[3]);

// c
// ↓
// 69000000 af000000 e5100000 2c100000
c = c + 1;
printf("current c points to %d\n", *c);

//
// c
// ↓
// 69000000 af000000 e5100000 2c100000
c = (int *) ((char *) c + 1);
printf("%p\n", c);

// c
// ↓
// 69000000 af4f1000 00100000 2c100000
//
// 最终:
//
// a[0] = 0x96
// a[1] = 0x1f4fa -> 128250
// a[2] = 0x100 -> 256
// a[4] = 0x1c2
*c = 500;

printf("2: a[0] = %d, a[1] = %d, a[2] = %d, a[3] = %d\n", a[0], a[1], a[2], a[3]);
}
```
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2766 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 13ms · UTC 08:26 · PVG 16:26 · LAX 01:26 · JFK 04:26
♥ Do have faith in what you're doing.