- 479 名前:デフォルトの名無しさん mailto:sage [2008/02/24(日) 00:07:28 ]
- >>477
じゃあもういいから、こうしとけ #include <stdio.h> #include <string.h> typedef struct { char **start ; char **end; } bin; void f(bin *x) { delete[] *x->start; *x->start = new char [3]; strcpy(*x->start,"aa"); } void g(bin *x) { delete[] *x->start; *x->start = new char [3]; strcpy(*x->start,"bb"); } main() { char *ch = NULL; bin x; x.start=&ch; f(&x); printf("%s",ch); g(&x); printf("%s",ch); } これで終了、もう来るな
|

|