Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).![]() |
![]() |
|
Thread Tools |
![]() |
#11 |
Member
Mega Poster
Join Date: Jul 2006
Location: Sunny Croydonia
Posts: 6,124
|
![]()
Of course, silly me - you want sweet, salt, natural or cheese popcorn ?
__________________
Sent from my PC NOT using any Tapatalk type rubbish!! █╬╬╬╬(•)i¯i▀▀▀▀▀█Ξ███████████████████████████████) |
![]() |
![]() |
![]() |
#12 |
Guest
Posts: n/a
|
![]() |
![]() |
![]() |
#13 |
Guest
Posts: n/a
|
![]()
Hmm not entirely sure I understand what you're getting with that last Baph
For me it'd have been something like... perl -e while (@boxes ) { if ($_ =~ /sw/) { print "$_ for me please!" } } Or some such (there being a _lot_ of different ways you could approach that) As for too many asterisk, I didn't but asterisks there and there were just enough to disguise something similar to bar stewards. The 'thing' (graphing module) I'm trying to use requires that the plot data be fed to it as an array of arrays (I think). Said data is coming from a db query. So I'm trying to populate the different arrays on the fly. That took me long enough to work out. Then I realised that I needed another array containing my x-axis values. In trying that a) I broke what I had got working and b) my brain fell over so I swore at you lot and went home. I could do what I need to do by writing a very namby pampy script which runs several queries and processes the output of each to prepare my data. But I'm trying to develop my scripting and write something a little more mature that does it in one go (trivial to some I'm sure). Anyway I'm home now and about to kill some sprites in CoD4 till I feel better. Last edited by 2mths; 13-08-08 at 04:32 PM. |
![]() |
![]() |
#14 | |
Guest
Posts: n/a
|
![]() Quote:
However, why bother looping around totalSweets? If you've named the variable properly, surely that's an array containing all boxes of sweet popcorn? Why not just treat it as a FIFO structure instead of looping? Last edited by Baph; 13-08-08 at 04:23 PM. Reason: spelling |
|
![]() |
![]() |
#15 |
Guest
Posts: n/a
|
![]()
Pardon?
|
![]() |
![]() |
#16 |
Guest
Posts: n/a
|
![]() |
![]() |
![]() |
#17 | |
Guest
Posts: n/a
|
![]() Quote:
No idea what about FIFO structures (I can work out what it stands for but that's not helping) so looping is all I've got. Last edited by 2mths; 13-08-08 at 04:38 PM. |
|
![]() |
![]() |
#18 |
Member
Mega Poster
Join Date: Mar 2004
Location: Not in Yorkshire. (Thank God)
Posts: 4,116
|
![]()
What is the problem, I cut my teeth coding assembly language on VAX computers many years ago. so multiple levels of indirection with offset etc. piece of ****.
You then get to c type pointer arrays, so effectively create multi dimensional arrays and multi size etc. You them move into things like java collections and arrays etc. But now you no longer have those nice pointers that allowed you to do fancy tricks, like stepping through arrays etc using pointer arithmetic. So explain what is doing your head in, and we will try to help. but first read the manual young man, then read it again. there is nothing worse than getting somebody to show you how, because you will just not remember.
__________________
Not Grumpy, opinionated. |
![]() |
![]() |
![]() |
#19 |
Member
Mega Poster
Join Date: Mar 2004
Location: Not in Yorkshire. (Thank God)
Posts: 4,116
|
![]()
BTW FIFO = first in first out, as opposed to last in first out etc.
__________________
Not Grumpy, opinionated. |
![]() |
![]() |
![]() |
#20 |
Moderator
Mega Poster
Join Date: Jul 2003
Location: Nr Ruthin
Posts: 7,079
|
![]()
AKA a queue to us oldies.
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Friends, Who'd have 'em? | Stu | Idle Banter | 22 | 10-12-08 11:12 PM |
Who'd have thought? | licoricepizza | Idle Banter | 0 | 22-11-07 03:51 PM |
Who'd be up for.......? | independentphoto | SV Ecosse | 51 | 02-09-07 07:52 AM |
Who'd be in sales! | Mogs | Idle Banter | 3 | 12-02-07 04:01 PM |
Who'd like one of these.. | kciN | Idle Banter | 7 | 02-08-06 08:52 PM |