![]() |
|
#1
|
|||
|
|||
Array questionHi
Iam using Borland Builder 5, and Ive got 10 TImages called Image1, Image2....Image10. I want to add these images to an array of type TImage can I do that in a for loop or do i have to add each Image by itself. CPP / C++ / C Code:
Last edited by LuciWiz : 06-Jul-2005 at 04:54.
Reason: Please insert your C++ code between [c++] & [/c++] tags
|
|
#2
|
|||
|
|||
|
I assume that you load the image information to Image1,Image2,..,Image10 from an imagefile (e.g. png, jpg..or whatever you use) earlier in your code.
In that case you could do like following: CPP / C++ / C Code:
btw you cannot "variabelize" the name of a variable itself as it seems you were after this kind of idea. And there is no need to for such complication; arrays are quite sufficient. |
Recent GIDBlog
2nd Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Quick, Insertion, and Partition | silicon | C++ Forum | 0 | 18-May-2005 20:49 |
| Help with an array using pointers | glulu76 | C++ Forum | 1 | 01-May-2005 11:21 |
| Noob question on c arrays and functions | brett | C Programming Language | 1 | 20-Apr-2005 03:59 |
| template comiling problems - need expert debugger! | crq | C++ Forum | 1 | 01-Feb-2005 21:26 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The