- 357 名前:デフォルトの名無しさん [2008/02/23(土) 16:52:12 ]
- これで正解でしょうか?
#include <string.h> #include <stdio.h> typedef struct STRDATA{ char **start; char **end;}strdata; f(strdata x){ delete *(x.start); *(x.start) = new char [20]; strcpy(*(x.start),"++++++++++++++"); } main(){ char *ch=NULL; strdata x; x.start=&ch; f(x); printf("%s",ch);}
|

|