Lost Password?

  #1 (permalink)  
Old 07-18-2006, 02:17 PM
Void's Avatar   
Void Void is offline
Programming Expert
 
Join Date: Jun 2006
Posts: 410
Rep Power: 11
Void is on a distinguished road
Default Arrays in NET 2.0 or CLI Managed C++

Arrays are a pain in the butt in CLI C++. Everytime I need to create one I have to look it up again. Here is how you create one:

Byte of 256:
array<Byte^>^ byte = gcnew array<Byte^>(256);

String
array<String^>^ strarray = gcnew array<String^>(10);

Here is a jagged array
<B>array<array<int>^>^ arr = gcnew array<array<int>^> (5);</B>


Let me know if you need any help with arrays.
__________________
Void
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 07-18-2006, 07:57 PM
NeedHelp NeedHelp is offline
Programming God
 
Join Date: May 2006
Posts: 527
Rep Power: 12
NeedHelp is on a distinguished road
Default

Nice post. Arrays are a pain in managed C++. C# is so much easier to create them. What happened to the old way of arrays anyway? You know, String[200].....
__________________
I Need Help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python arrays... Sir_Rimo Python 3 06-20-2007 08:54 AM
Arrays clookid PHP Tutorials 1 01-11-2007 08:30 PM
Arrays Sionofdarkness C and C++ 5 07-26-2006 05:35 PM
Learning Managed C++ NeedHelp Managed C++ 1 06-15-2006 04:06 PM
Convert between managed and unmanaged Crane Managed C++ 0 11-03-2005 03:46 PM


All times are GMT -5. The time now is 11:48 PM.

Contest Stats

John ........ 223.00000
dargueta ........ 168.00000
Xav ........ 164.00000
LogicKills ........ 20.00000
sam ........ 20.00000
gaylo565 ........ 18.00000
|pH| ........ 15.00000
WingedPanther ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 67%

Ads