tmy's recent timeline updates
tmy

tmy

V2EX member #167356, joined on 2016-04-09 00:43:38 +08:00
Today's activity rank 6310
tmy's recent replies
Dec 25, 2018
Replied to a topic by simple2025 Linux C 语言初学这,请教字符串排序问题
const char *input[] = {"a","orange","apple","mobile","car"}这里 input 表示有 5 个指针的指针数组
const char *input[1024];
input[0]="a";
input[1] = "orange";
input[2] = "apple";
input[3] = "apple";
input[4] = "mobile";
input[5] = "car";这个表示 input 是一个有 1024 个指针的指针数组,前面 6 个有明确的指针,后面的指针是野指针,那么在你的比较函数里面 strcmp 用到了野指针,结果可能崩溃也可能不崩溃,你改为 for (i=0; i<6; ++i)这个后没有使用到野指针也就不会崩溃
Nov 8, 2018
Replied to a topic by razios Android 原生安卓的农历显示居然是错的?
我的也是初二,没有昨天的立冬
欣点?
Sep 29, 2018
Replied to a topic by v2byy 程序员 函数参数只能通过栈传递吗?
linux 下 x64 是用寄存器,寄存器不够再用栈,细节可以把 c 代码编译成汇编,一看就知道了
kodi
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   941 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 12ms · UTC 22:39 · PVG 06:39 · LAX 15:39 · JFK 18:39
♥ Do have faith in what you're doing.