y‰SŽÒнŒ}zC/C++Ž ..
430:421
08/02/23 22:28:56
‚·‚݂܂¹‚ñ@Œë‰ð‚µ‚Ä‚¢‚Ü‚¹‚ñ‚Å‚µ‚½@‘‚«Š·‚¦‚ç‚ê‚Ü‚¹‚ñ
#include <string.h>
#include <stdio.h>
typedef struct { char *st; }strdata;
f(strdata *x){
delete x->st;
x->st = new char [9];
strcpy(x->st,"++++++"); }
main(){
char *ch=NULL;
strdata x;
x.st=ch;
f(&x);
printf("%s",ch);}
ŽŸƒy[ƒWÅVƒŒƒX•\ަƒXƒŒƒbƒh‚ÌŒŸõ—ÞŽ—ƒXƒŒˆê——˜b‘è‚̃jƒ…[ƒX‚¨‚Ü‚©‚¹ƒŠƒXƒg¥ƒIƒvƒVƒ‡ƒ“‚ð•\ަ‰É‚‚Ԃµ2ch
4987“ú‘O‚ÉXV/243 KB
’S“–:undef