I tried this but it doesn't work:
System::String^ a=new array[10];.
thanks.
Posted 25 December 2010 - 12:19 PM
array<String^>^ strArray = gcnew array<String^>(10);
// Store a String object in it
strArray[0] = gcnew String("hello world!");
Posted 03 January 2011 - 08:50 AM
// Declaration: example is a jagged array, that can contain up to three arrays (3 rows).
array<array<System::String^> ^>^ example = gcnew array<array<System::String ^> ^>(3);
// Initialize each row. example[i] is nothing more than a 1D array, that can hold 5 elements.
// Therefore, we will have 5 columns.
for (int i = 0; i < 3; i++)
example[i] = gcnew array<System::String ^>(5);
example[0][1] = "Example01";
// etc .. etc..
Posted 04 April 2011 - 03:22 AM
DEFINE# String^,2^ user_preferences(void); /// Not right.... Initialize# array<System::String^, 2>^ users_profile = gcnew array<System::String^, 2>(99,4); users_profile = user_preferences(); // Call it and return a String^ 2D array
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
