For number=nmin To nmax
'the first paragraph
For j=1 To popsize
For I=1 To number
Q (j, I)=...
Next I
Next j
. 'other operating
'the second paragraph
For I=1 To number
The Write # 1, q (j, I)=...
Next I
Next number
All variables have been defined, and now I need the first cycle will be an array of q (number) is zero or negative element in the delete, get the new array as a result of the output, but after removing elements changes in the size of the number, it will affect the outermost loop, so struggling with removing elements should be done in the first section of the program, this is the first section of the program after the completion, o master, gives the specific procedures, thank you very much,
CodePudding user response:
Reverse order to delete...CodePudding user response:
Specifically, at the end of the first section of the program, delete negative or zero elements in reverse chronological order? Will changes in the number of the outermost layer For number=nmin To have influence on the cycle nmax? thank youCodePudding user response:
Sorry, wrong thought is one-dimensional,How can any two-dimensional array delete one of the elements?
CodePudding user response:
Your program has a problem, the second paragraph of q is the j (j, I) fixed?CodePudding user response:
Two-dimensional bad to delete,A one-dimensional reverse order to delete,
CodePudding user response: