Search found 1171 matches

by paul doe
Jun 20, 2020 12:47
Forum: General
Topic: Squares
Replies: 7926
Views: 495238

Re: Squares

God, much like Pareidolia, works in mysterious ways too:
Image
by paul doe
Jun 20, 2020 4:12
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 803

Re: Any suggestions on the best way to set up a linked list?

A valid conclusion, since both arrays and linked lists can be used to represent all the other, more complex data structures: #include once "linked-list.bi" '' The code I presented before type _ TreeNode public: declare constructor( _ byref as const string ) declare destructor() '' Pure con...
by paul doe
Jun 19, 2020 14:57
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 803

Re: Any suggestions on the best way to set up a linked list?

... Not quite. It is an adventure but the structure is more a forest of n trees (rooms) with each tree having n branches for the objects in each room. Each object has a maximum of n^3 branches as each could have n objects on it (n^1), n objects in it (n^2) and n objects under it (so n^3). Each of t...
by paul doe
Jun 19, 2020 13:56
Forum: Community Discussion
Topic: @paul doe re: fb-dictionary
Replies: 4
Views: 212

Re: @paul doe re: fb-dictionary

srvaldez wrote:...
thank you paul

No problem. I'll give you access rights now.

Edit: Done.
by paul doe
Jun 19, 2020 13:46
Forum: Community Discussion
Topic: @paul doe re: fb-dictionary
Replies: 4
Views: 212

Re: @paul doe re: fb-dictionary

Hi paul doe is your fb-dictionary still avalable or was it part of the FreeBasic Framework ? I really liked your dictionary class and would hate to see it disappear Hi srvaldez. Indeed, it was part of the FreeBasic Framework, sorry. Do you have a GitHub account? I can give you access to it if you w...
by paul doe
Jun 18, 2020 16:41
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 803

Re: Any suggestions on the best way to set up a linked list?

Many thanks for the suggestion. I have been doing some pondering on this and I am beginning to realise how deep this rabbit hole I have made myself could be. ... Yes and no. Yes because it is indeed a pretty messy problem; No because it can be tackled in a reasonable way. Before I give further advi...
by paul doe
Jun 18, 2020 16:29
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 803

Re: Any suggestions on the best way to set up a linked list?

A very simple usage example, iterating the list of objects contained within a room: type _ Room declare constructor( _ byref as const string ) declare destructor() as string _ description '' The list of objects in this room as LinkedList _ objects end type constructor _ Room( _ byref aDescription as...
by paul doe
Jun 18, 2020 16:16
Forum: Beginners
Topic: Any suggestions on the best way to set up a linked list?
Replies: 24
Views: 803

Re: Any suggestions on the best way to set up a linked list?

... I read the object's location etc for each one in a loop so each object will now have its location, but no links to any other objects in the same place and need some way of linking the objects together so that I have something like: ... Laying out the linked list as an array, and using a handler...
by paul doe
Jun 18, 2020 13:11
Forum: Beginners
Topic: Could somone explain how to use bit, bit set etc?
Replies: 23
Views: 686

Re: Could somone explain how to use bit, bit set etc?

... While on the subject are all long ints 64 bit or does that depend on the underlaying (32/64) bit architecture? ... Only FreeBasic's integer data type size changes depending on the architecture. This table should prove invaluable if you have prior experience with C/want to port some code: C/C++ ...
by paul doe
Jun 18, 2020 0:32
Forum: Beginners
Topic: DIR is driving me nuts.
Replies: 19
Views: 552

Re: DIR is driving me nuts.

jj2007 wrote:...
@Paul Doe: apologies accepted, thanks. Lovely picture btw - the frog has the right attitude for bug chasing under Windows ;-)

Oh? I wasn't apologizing (no need to, since things went exactly the way I forecasted). But anyway, glad you liked the meme XD
by paul doe
Jun 16, 2020 0:14
Forum: Beginners
Topic: DIR is driving me nuts.
Replies: 19
Views: 552

Re: DIR is driving me nuts.

@PhiltheBear
@jj2007
Image
by paul doe
Jun 15, 2020 20:48
Forum: Beginners
Topic: DIR is driving me nuts.
Replies: 19
Views: 552

Re: DIR is driving me nuts.

Why is it that the posts by noobies that claim 'extensive experience' with BASIC always take the same form? Do I see a pattern here? Do they use a template of sorts? ⋅ Start by claiming lots of experience in BASIC ( sine qua non requisite), then stating a trivial problem for which there is...
by paul doe
Jun 15, 2020 4:25
Forum: Projects
Topic: FreeBasic Framework
Replies: 30
Views: 2844

Re: FreeBasic Framework

As of 6/14/2020 this repository is no more publicly available.

@admins: please lock/delete this thread as deemed appropriate.
by paul doe
May 22, 2020 14:43
Forum: Community Discussion
Topic: BASIC is not BASIC anymore
Replies: 10
Views: 710

Re: BASIC is not BASIC anymore

I know var can make things easier, but then you have to guess what type a is, I prefer to be explicit and not leave anything to guesswork. in this case, a could be of any numeric type Indeed. Var is most useful in situations where you don't have to guess the context (or read the manual to learn how...
by paul doe
May 19, 2020 12:14
Forum: Beginners
Topic: A$="123,45,1,89,22" how do I get column 4, which is 89?
Replies: 10
Views: 678

Re: A$="123,45,1,89,22" how do I get column 4, which is 89?

@fxm: nice. A non-recursive version, along with some test code: #lang "qb" '' Enable return from procedures option nogosub /' Returns the number of elements in a string, using 'sep' as character separators. '/ function _ elementsOf( _ byref s as const string, _ byref sep as const string =>...

Go to advanced search