| | |
Array question
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jul 2005
Posts: 10
Reputation:
Solved Threads: 0
Hi
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.
//this is the method Iam using
TImage ImageArray[10];
ImageArray[0] = Image1;
ImageArray[1] = Image2;
ImageArray[9] = Image10;
//this is the method I want to use
for( int i = 0; i <10; i++)
{
ImageArray[i] = XXX //what should replace the XXX if this is possible
}
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.
//this is the method Iam using
TImage ImageArray[10];
ImageArray[0] = Image1;
ImageArray[1] = Image2;
ImageArray[9] = Image10;
//this is the method I want to use
for( int i = 0; i <10; i++)
{
ImageArray[i] = XXX //what should replace the XXX if this is possible
}
![]() |
Similar Threads
- Little Simple array question :) (C)
- Simple array question (C++)
- Simple char array question (C)
- Newbie Constructor / Array question (C++)
- Array Question (C++)
- C++ Array Question (C++)
- array question (C++)
Other Threads in the C++ Forum
- Previous Thread: Just a question regarding Variables in C++
- Next Thread: Checking for a blank textbox
| Thread Tools | Search this Thread |
api application array arrays based beginner binary bitmap c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline graph homeworkhelper iamthwee ifstream input int integer java lib linux list loop looping loops map math matrix memory multiple newbie news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates text tree url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






