/*2014. 01 .11 by Arby*/
/*c++ primer 7.12 编程练习*/
#include <iostream>
using namespace std;
void give_value(int arr[], int size, int value);
void show_array(int arr[], int size);
int main()
{
/*初始化*/
const int arr_size = 5;
int array_give[arr_size];
int value;
/*操作*/
cout <<"give the value of you want:";
cin >> value;
give_value(array_give, arr_size, value);
show_array(array_give, arr_size);
cin.get();
cin.get();
return 0;
}
/*因为数组传递的是原......
阅读全文