1,2,3,4,5.. become 3,4,8,24,63... ?
Author Message
1,2,3,4,5.. become 3,4,8,24,63... ?

Hello all of you..

I was wronder if u answer me this question :)

I want to get the value in specific number,
ie : 1,4,30,53,68..... they are in a indentifer.

What can I do if I want to get value like this ?

ie: The 1st value: 1,
The 2nd Value: 4,
The 3rd Value: 30,
The 4th Value: 53
.
.

(They are not the random number,is assign by programmer)
How to call those number out ?

In "INTEGER" , the number is according to it's value.
ie : 1,2,3,4,5,6,7,8....
var
index,number : integer;
begin
for index := 1 to number do
.
.
.
end.
in this case, the value of Index is 1,2,3,4,5,6,7,8,9....

Now,I want to use 1 -> 4 -> 7-> 12 -> 45 -> 65... in index.
What can I do ?

My english is poor.. so...hardly to say....
Therefore I use many example.....heeeeheeeee....

Wed, 18 Jun 1902 08:00:00 GMT
1,2,3,4,5.. become 3,4,8,24,63... ?

Quote:

> Hello all of you..

>    I was wronder if u answer me this question :)

>    I want to get the value in specific number,
>    ie : 1,4,30,53,68..... they are in a indentifer.

>    What can I do if I want to get value like this ?

>    ie: The 1st value: 1,
>        The 2nd Value: 4,
>        The 3rd Value: 30,
>        The 4th Value: 53

You need to study what are called ARRAYs in Pascal.
In Turbo Pascal or Delphi you can specify:

CONST
Lookup:  ARRAY[1..5] OF INTEGER = (1,4,30,53,68);

Then, Lookup[1] is 1,
Lookup[2] is 4,
Lookup[3] is 30,
Lookup[4] is 68

efg
_____________________________________

MedTech Research Corporation
Lenexa, KS  66219  USA

Wed, 18 Jun 1902 08:00:00 GMT
1,2,3,4,5.. become 3,4,8,24,63... ?

"I was wronder if u answer me this question :)
I want to get the value in specific number,
ie : 1,4,30,53,68..... they are in a indentifer.

What can I do if I want to get value like this ?

ie: The 1st value: 1,
The 2nd Value: 4,
The 3rd Value: 30,
The 4th Value: 53
.             "

Which series do you want to produce?  The one in your message
header is different from this one and the other examples you
gave.  Are you trying to figure out how someone else did this for
a specific series, or do you want to make a generator like this

--
Will Dwinnell
Commercial Intelligence

Wed, 18 Jun 1902 08:00:00 GMT

 Page 1 of 1 [ 3 post ]

Relevant Pages