【初心者歓迎】C/C++室 Ver.72【環境依存OK】
at TECH
747:デフォルトの名無しさん
10/05/05 01:56:40
>>746
int main(int argc, char *argv[])
{
char *t;
test(&t);
cout << t << endl;
return EXIT_SUCCESS;
}
void test(char **t)
{
*t = new char[100];
int i = 0;
cout << "step1" << endl;
(*t)[i++] = 'a';
(*t)[i++] = '\0';
}
次ページ続きを表示1を表示最新レス表示スレッドの検索類似スレ一覧話題のニュースおまかせリスト▼オプションを表示暇つぶし2ch
4160日前に更新/255 KB
担当:undef