fairose
December 12th, 2006, 02:25 AM
how do i declare a variable using a arraylist in c++/cli, and how to assign string values and get them and new it to array. pls help with sample coding. thanks. URGENT!!
|
Click to See Complete Forum and Search --> : help need in array fairose December 12th, 2006, 02:25 AM how do i declare a variable using a arraylist in c++/cli, and how to assign string values and get them and new it to array. pls help with sample coding. thanks. URGENT!! stefboerrigter December 13th, 2006, 03:35 AM how do i declare a variable using a arraylist in c++/cli, and how to assign string values and get them and new it to array. pls help with sample coding. thanks. URGENT!! Array: For instance: String arrayString[2]; arrayString[0] = "FIRST WORD"; arrayString[1] = "SECOND WORD"; for(int i = 0; i<2; i++){ Console::WriteLine(arrayString[i]); } //// OR: //// int arrayInts[3]; arrayInts[0] = 1; arrayInts[1] = 2; arrayInts[3] = arrayInts[0]+arrayInts[1]; Console::WriteLine("NUMBER IS: " +arrayInts[3]); Output: FIST WORD SECOND WORD NUMBER IS: 3 fairose December 14th, 2006, 12:26 AM hey thanks.. but i need to use arraylist to do the declaring and there elements are not set. let me explain my task. I need to create a program that dispalys for navigation in the treeview. there are 1 base station and many subscriber base station. when the base station is drag and drop to the panel, the tree view must haf the base station[parent] icon followed by subscriber station[child] icon. i need to use arraylist to do the ting and new it to array. thanks codeguru.com
Copyright WebMediaBrands Inc., All Rights Reserved. |