Search found 572 matches
- Nov 03, 2017 21:58
- Forum: General
- Topic: Remove elements repeted
- Replies: 26
- Views: 8625
Re: Remove elements repeted
Hi: 1) Thank you very much everyone! 2) LOL, I've been working erroneously well all my life! I modified the program a bit. (I hope I did not have more errors) 'lrcvs 01.10.17 'program to eliminate repeated elements in an array. '1) we sort the initial array, using quicksort. '2) we remove the repeat...
- Nov 03, 2017 7:21
- Forum: General
- Topic: Remove elements repeted
- Replies: 26
- Views: 8625
Re: Remove elements repeted
Hi
Editor Fb:
FB IDE See 0.4.6, February 19, 2006, wxwidgets 2.2.2
Editor Fb:
FB IDE See 0.4.6, February 19, 2006, wxwidgets 2.2.2
- Nov 03, 2017 6:09
- Forum: General
- Topic: Remove elements repeted
- Replies: 26
- Views: 8625
Re: Remove elements repeted
Hi, sancho3:
... but with the editor, there is no error... and... is a good idea!
... 3.000.000 of elements <= 1 second!
Init array of 3000000 elements, some repeated
There are 1896773 unique elements
end
Regards
... but with the editor, there is no error... and... is a good idea!
... 3.000.000 of elements <= 1 second!
Init array of 3000000 elements, some repeated
There are 1896773 unique elements
end
Regards
- Nov 03, 2017 5:27
- Forum: General
- Topic: Remove elements repeted
- Replies: 26
- Views: 8625
Re: Remove elements repeted
Hi, sancho3:
You're right!
I have never tried "fbc -exx" xxx.bas "
and yes, it indicates the same error as you.
... but with the editor, there is no error.
You're right!
I have never tried "fbc -exx" xxx.bas "
and yes, it indicates the same error as you.
... but with the editor, there is no error.
- Nov 02, 2017 18:46
- Forum: General
- Topic: Remove elements repeted
- Replies: 26
- Views: 8625
Re: Remove elements repeted
Hi, Sorry for the delay in responding. Well, I work with this: FB IDE See 0.4.6, February 19, 2006, wxwidgets 2.2.2 And with this editor, the program does not indicate error. Here you have a sample: 13 10 18 18 16 3 20 7 3 17 13 14 16 8 19 14 8 13 8 13 Init array of 20 elements, some repeated 3 7 8 ...
- Nov 02, 2017 5:30
- Forum: General
- Topic: Remove elements repeted
- Replies: 26
- Views: 8625
Re: Remove elements repeted
Hi The program does not indicate an error. 'lrcvs 01.10.17 'Program to eliminate repeated elements in an array. '1) we sort the initial array, using quicksort. '2) we remove the repeated elements, skipping the ones that are the same 'and reducing the time of "cleaning the repeated elements"...
- Nov 02, 2017 4:45
- Forum: General
- Topic: Remove elements repeted
- Replies: 26
- Views: 8625
Re: Remove elements repeted
Hi, all!
Thanks to both of you.
I change the lines of code that you indicate to me.
Thanks to both of you.
I change the lines of code that you indicate to me.
- Nov 01, 2017 22:15
- Forum: General
- Topic: Remove elements repeted
- Replies: 26
- Views: 8625
Remove elements repeted
Hi! 'lrcvs 01.11.17 'Program to eliminate repeated elements in an array. '1) we sort the initial array, using quicksort. '2) we remove the repeated elements. '3) skipping the ones that are the same and reducing the time of "cleaning the repeated elements". DECLARE SUB ordenar2 (s()AS INTEG...
- Jun 29, 2017 12:28
- Forum: Projects
- Topic: Library for drawing turtle type (Logo turtle)
- Replies: 106
- Views: 19339
Re: Library for drawing turtle type (Logo turtle)
Hi, bplus:
Thanks!
I wish that some routine of the turtle program may be useful.
Another fan of yours!
Thanks!
I wish that some routine of the turtle program may be useful.
Another fan of yours!
- May 29, 2017 13:22
- Forum: General
- Topic: Experiments with pointers
- Replies: 9
- Views: 1160
Re: Experiments with pointers
Hi, fxm: Apologies for the delay in responding. The examples you show, demonstrate that working with several dimensions with pointers is relatively easy. But when you have to remove all pointer type variables, you must also make several loops. Using multi-dimensional pseudovectors, we simply need a ...
- May 26, 2017 19:35
- Forum: General
- Topic: Experiments with pointers
- Replies: 9
- Views: 1160
Re: Experiments with pointers
@fxm:
(In the end, pointers and arrays are "equivalent")
(In the end, pointers and arrays are "equivalent")
- May 26, 2017 19:28
- Forum: General
- Topic: Experiments with pointers
- Replies: 9
- Views: 1160
Re: Experiments with pointers
@fxm: Hi: Ok I understand you! I simply apply the pseudovectors. In the pseudovectors, there is no position "0" The first position is the "1". When looking at examples of "=> 2D" pointer applications, I see that they are very complex. When using pseudovectors, I can &qu...
- May 26, 2017 19:10
- Forum: General
- Topic: Experiments with pointers
- Replies: 9
- Views: 1160
Re: Experiments with pointers
Hi: My third experiment with pointers. In this experiment, I wanted ("simulate") a system of pointers "4D" of 3 X 3 X 3 x 3, by means of a system of linear position. DIM myPtr As byte Ptr DIM AS byte ba,bb,bc,bd,be, bf myPtr = Callocate((3*3*3*3), Sizeof(byte))'<<< (row*col*level...
- May 26, 2017 18:46
- Forum: General
- Topic: Experiments with pointers
- Replies: 9
- Views: 1160
Re: Experiments with pointers
Hi: Hi: My second experiment with pointers. In this experiment, I wanted ("simulate") a system of pointers "3D" of 3 X 3 X 3, by means of a system of linear position. DIM myPtr As byte Ptr DIM AS byte ba,bb,bc,bd,be myPtr = Callocate((3*3*3), Sizeof(byte)) bc = 1 FOR ba = 1 TO 3 ...
- May 26, 2017 18:24
- Forum: General
- Topic: Experiments with pointers
- Replies: 9
- Views: 1160
Experiments with pointers
Hi: My first experiment with pointers. In this experiment, I wanted ("simulate") a system of pointers "2D" of 3 X 3, by means of a system of linear position. The method used is "Pseudovectors". With pseudovectors, we can easily "simulate" any dimension (arrays...