Search found 572 matches

by lrcvs
May 24, 2017 19:56
Forum: General
Topic: What is the difference between using pointers and using peek / poke?
Replies: 13
Views: 1373

Re: What is the difference between using pointers and using peek / poke?

Hi!

@ marcov:

Thanks for your comments!


@fxm:

No problem for a mistake!
My programs with pointers are a continuous error, no problem!

The important thing is that I understand the concepts!
by lrcvs
May 24, 2017 18:11
Forum: General
Topic: What is the difference between using pointers and using peek / poke?
Replies: 13
Views: 1373

Re: What is the difference between using pointers and using peek / poke?

Hi, fxm:

Waw, now if I have programs with which to entertain and experiment!

Thanks!
by lrcvs
May 24, 2017 4:39
Forum: General
Topic: What is the difference between using pointers and using peek / poke?
Replies: 13
Views: 1373

Re: What is the difference between using pointers and using peek / poke?

Ok, thank you both!

( BasicCoder2 and MrSwiss )

This topic is very interesting, I have never worked with pointers.
Now to play a little!

regards
by lrcvs
May 23, 2017 20:36
Forum: General
Topic: What is the difference between using pointers and using peek / poke?
Replies: 13
Views: 1373

Re: What is the difference between using pointers and using peek / poke?

Hi: Cuestion 1: The maximum number of pointers = fre / sizeof(type pointer) '????????????????? DIM myptr AS INTEGER PTR DIM AS INTEGER a,b a = 10 'Number of Pointer Variables = 10 b = FRE/SIZEOF(INTEGER) '<<< Maximum number of pointers???????? myptr = CALLOCATE(a, SIZEOF(INTEGER)) 'Initial position ...
by lrcvs
May 21, 2017 18:00
Forum: General
Topic: What is the difference between using pointers and using peek / poke?
Replies: 13
Views: 1373

What is the difference between using pointers and using peek / poke?

Hi!: What is the difference between using pointers and using peek / poke? 'Declare Arrays DIM AS INTEGER a(11), b(11), c(11) 'declare size of the arrays 'Declare Pointers DIM AS INTEGER PTR r,s,t DIM AS INTEGER n, x r = CALLOCATE(11, SIZEOF(INTEGER))'declare size of the pointers s = CALLOCATE(11, SI...
by lrcvs
May 10, 2017 13:23
Forum: General
Topic: turtle 2.0
Replies: 31
Views: 3235

Re: turtle 2.0

See you:

"lindenmayer" systems fractals and plants

and

l-system

https://en.wikipedia.org/wiki/L-system


viewtopic.php?f=8&t=21368


regards
by lrcvs
May 08, 2017 20:44
Forum: General
Topic: An arithmetic problem
Replies: 25
Views: 2095

Re: An arithmetic problem

Hi, all:

Tourist Trap: Thank you!

Regards
by lrcvs
May 08, 2017 14:17
Forum: General
Topic: An arithmetic problem
Replies: 25
Views: 2095

Re: An arithmetic problem

To dodicat:

Very true!

... then you have to update the problem ...

... also there are wheels with nucleus of exagonal (honeycomb of bees), that do not prick.
by lrcvs
May 08, 2017 13:30
Forum: General
Topic: An arithmetic problem
Replies: 25
Views: 2095

Re: An arithmetic problem

Hi, all!:

LOL!

The problem is a simple car (4 wheels + 1 spare)
if they had asked for an Australian truck (road train) and 50,000 Km ...

Thank you, very interesting also your solution!
by lrcvs
May 08, 2017 9:46
Forum: General
Topic: An arithmetic problem
Replies: 25
Views: 2095

Re: An arithmetic problem

Hi, all A possible solution CLS DIM AS INTEGER A, B, C, D, E, N FOR N = 1 TO 5 IF N <> 1 THEN A = A + 1000 IF N <> 2 THEN B = B + 1000 IF N <> 3 THEN C = C + 1000 IF N <> 4 THEN D = D + 1000 IF N <> 5 THEN E = E + 1000 PRINT A, B, C, D, E NEXT N PRINT PRINT A, B, C, D, E END Regards
by lrcvs
May 08, 2017 5:17
Forum: General
Topic: An arithmetic problem
Replies: 25
Views: 2095

Re: An arithmetic problem

Hi, all:

Ok, I do not delete this post!
Apologies
Thank you
by lrcvs
May 07, 2017 20:31
Forum: General
Topic: An arithmetic problem
Replies: 25
Views: 2095

Re: An arithmetic problem

Hi, all!

Stop, Stop!

This is a simple arithmetical problem, not a discussion!

I was simply looking for a more interesting / intelligent computer solution than mine, not to generate a mathematical battle.

The problem is over!

Thank you all!
by lrcvs
May 07, 2017 18:09
Forum: General
Topic: An arithmetic problem
Replies: 25
Views: 2095

An arithmetic problem

Hi!: Here I am with my little son helping him in his tasks of the school. Have the following problem: A traveler traveled by car 5000 km, regularly exchanging the wheels (including the spare) so that they all suffered equal wear. At the end of the trip, how many kilometers has each wheel been used? ...

Go to advanced search