原帖由 [bold][underline]wch27149[/underline][/bold] 于 2008-1-8 15:16 发表 [url=http://bbs.bc-cn.net/redirect.php?goto=findpost&pid=1174835&ptid=196439]
[/url]
没有返回数组的方法?那这个程序是怎么返回一维数祖的?
//change the content of an array using a function
#include
using namespace std;
void cube(int* n, int num);
int main(){
int i, nums[10];
for (i=0;i ...

没有返回数组的方法?那这个程序是怎么返回一维数祖的?
//change the content of an array using a function
#include
using namespace std;
void cube(int* n, int num);
int main(){
int i, nums[10];
for (i=0;i ...
那请你先学好基础,什么是函数返回值,你的函数返回值声明为void,也就是根本没有返回