C++???????????????????
???????????? ???????[ 2014/11/4 13:51:32 ] ??????????? C++
????C++?????????á???????????????????????????г???????????????????????testptrnoret??????????????????????testptrret???????????
// testptr.cpp : ??????????ó????????
//
#include "stdafx.h"
int* testptrret(int* a??int n)
{
a = new int[n];
for (int i = 0; i < n;i++)
{
a[i] = i;
}
return a;
}
void testptrnoret(int* a?? int n)
{
a = new int[n];
for (int i = 0; i < n; i++)
{
a[i] = i;
}
}
int _tmain(int argc?? _TCHAR* argv[])
{
int* a=0;
a = testptrret(a?? 4);
int* b = 0;
testptrnoret(b?? 4);
return 0;
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11