回答編集履歴
1
追加
answer
CHANGED
@@ -27,4 +27,28 @@
|
|
27
27
|
hogehoge.h
|
28
28
|
``` hogehoge.h
|
29
29
|
#define hogehoge "hogehoge"
|
30
|
+
```
|
31
|
+
|
32
|
+
その他
|
33
|
+
```c
|
34
|
+
#include <stdio.h>
|
35
|
+
#include <stdlib.h>
|
36
|
+
#include "hogehoge.h"
|
37
|
+
|
38
|
+
int main(){
|
39
|
+
char str[256]="a";
|
40
|
+
int i;
|
41
|
+
printf("%s\n",hogehoge);
|
42
|
+
|
43
|
+
for(i=0; (i+1)<256; i++){
|
44
|
+
str[i+1] = str[i];
|
45
|
+
}
|
46
|
+
|
47
|
+
for(i=0; i<256; i++){
|
48
|
+
printf("%c",str[i]);
|
49
|
+
}
|
50
|
+
printf("\n");
|
51
|
+
|
52
|
+
return 0;
|
53
|
+
}
|
30
54
|
```
|