#include "stdafx.h"
using namespace System;
void main()
{
array<int>^ a = gcnew array<int>(4);
array<String^>^ b = gcnew array<String^>(4);
for (int i = 0; i < a->Length; i++)
{
a[i] = i;
}
for (int i = 0; i < b->Length; i++)
{
b[i] = a[i].ToString();
}
for (int i = 0; i < b->Length; i++)
{
Console::WriteLine(b[i]);
}
Console::WriteLine();
Array::Reverse(b);
for (int i = 0; i < b->Length; i++)
{
Console::WriteLine(b[i]);
}
}
|