Home > Back-end > Dynamically add pictures, complete number
Dynamically add pictures, complete number
Time:09-26
Dynamically add images, each image by adding the order of the numbered from 1 began to add, if you remove any, after a number can be automatically updated according to the order of such procedure how to do, have can load images, only number
CodePudding user response:
Thinking: suppose the database operation; 1. Total number N of access to database and the serial number of the last record M 2. Add records, N=M, if equal new record for M + 1, if not equal from the first record cycle whether rows R1 and record the M1 are equal, if equal to ignore, not equal Numbers for R1 (3) to be implemented in the process of database storage,
CodePudding user response:
Create a dynamic array, specify the address of the Image by pointer type, reference Image picture,
Or create a pointer chain structure, direct Image,
Pointer to the serial number, serial number, or dynamic array is the serial number of it,
CodePudding user response:
Delete the dynamic loading is program display picture?
Using dynamic array to save the picture address, to do the array subscript image sequence number