第1个回答 2010-03-08
// 输入5个数,然后输出
#include <iostream>
using namespace std;
#define N 5
int main()
{
int *x = new int[N];
for ( int i = 0; i < N; i++ )
{
cin >> x[i];
}
for ( int j = 0; j < N; j++ )
{
cout << x[j] << endl;
}
delete x;
x = NULL;
return 0;
}