Search found 572 matches

by lrcvs
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...
by lrcvs
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
by lrcvs
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
by lrcvs
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.
by lrcvs
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 ...
by lrcvs
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"...
by lrcvs
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.
by lrcvs
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...
by lrcvs
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!
by lrcvs
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 ...
by lrcvs
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")
by lrcvs
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...
by lrcvs
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...
by lrcvs
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 ...
by lrcvs
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...

Go to advanced search