作者查詢 / ric2k1
作者 ric2k1 在 PTT 全部看板的留言(推文), 共5594則
限定看板:全部
看板排序:
1F推:Please print out *(address(b) - 4)...12/06 16:40
2F→:I don't mean "cout << *(address(b) - 4) << endl;12/06 16:40
3F→:Please figure out a way to print it!12/06 16:41
6F推:size_t(b) ==> becomes a size_t variable12/06 18:31
7F→:size_t(b) - 4 ==> the "content" of (size_t(b)) - 412/06 18:32
8F→:size_t(b) - 4 ==> still a size_t type variable12/06 18:32
9F→:*(size_t(b) - 4) ==> (size_t(b) - 4) is NOT a pointer12/06 18:33
10F→:That's why you have compilation error12/06 18:34
11F→:Try to start with (size_t*)b.... that's all I can say.12/06 18:34
12F→:More question, please see me in person...12/06 18:36
14F推::)12/07 01:23
1F推:Because size (a + b) > (d + e) ==> e can't be fitted12/06 16:36
2F→:in the remaining (12 + 16) - 16 = 12 Bytes...12/06 16:37
3F推:啊 寫錯了 ==> size (a + b) < (d + e)12/06 16:44
1F推:想辦法讓每個 element 的大小為 SIZE_T (4 Bytes) 的倍數12/05 23:45
2F→:e.g. sizeof(T) = 13 ==> s = ((13 + 3)/4 * 4) = 1612/05 23:46
3F推:更動的部份並不在 reference code 裡面, 是我自己版本的12/04 21:47
4F→:cout 部分有所修正...12/04 21:48
5F→:如有更正 reference code, 會 repost #22812/04 21:48
2F推:calling function 除了 local variable 之外, 還有12/04 13:12
3F→:function 的 return address, flags, 等等, 都要推到 stack12/04 13:13
1F推:只要格式對的指令會過 不對的不會過就好了12/03 20:30
2F→:不過請盡量用 CmdExec::errorOption(...)12/03 20:31
1F推:啊 耍笨了 剛剛改了一個東西而少改了另外一行...應該OK了12/02 18:11
3F推: 這麼快就被發現囉... orz12/01 02:32
1F→:cd ~ric11/30 23:23
2F→:with 2 testcases (do.mtest, do.mtest2)12/01 00:48
1F推:Please make sure "calcCmd.cpp" is propoerly compiled...11/25 21:06