回答編集履歴
1
コード修正
test
CHANGED
@@ -66,13 +66,13 @@
|
|
66
66
|
|
67
67
|
if(result != 0) strcpy(cacheLine[i], data);
|
68
68
|
|
69
|
-
f
|
69
|
+
if(i > 0) {
|
70
70
|
|
71
71
|
char *p = cacheLine[i];
|
72
72
|
|
73
|
-
cacheLine[i] = cacheLine[i-1];
|
73
|
+
for(; i>0; i--) cacheLine[i] = cacheLine[i-1];
|
74
74
|
|
75
|
-
cacheLine[
|
75
|
+
cacheLine[0] = p;
|
76
76
|
|
77
77
|
}
|
78
78
|
|