![]() |
|
|
Welcome to the { mindfrost82.com } forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||
|
Project
here's a pattern
1 1 1 2 1 1 2 1 1 1 1 1 2 2 1 3 1 2 2 1 1 1 3 1 1 2 2 2 1 1 1 1 3 2 1 3 2 1 1 each line describes the line above, in pairs of digits describing the quantity and value of each digit thus 2 1 produces the next line 1 2, 1 1 Simple - but who can see how to persuade VB6 to generate this for me assigning a unique colour to each number? I want to see if a pattern develops!! :-) Lol |
|
|||
|
Re: Project
"Lol" <xguilmer@blueblunder.co.uk>'s wild thoughts were
released on Wed, 13 Feb 2008 09:20:15 GMT bearing the following fruit: >here's a pattern >1 >1 1 >2 1 >1 2 1 1 >1 1 1 2 2 1 >3 1 2 2 1 1 >1 3 1 1 2 2 2 1 >1 1 1 3 2 1 3 2 1 1 > >each line describes the line above, in pairs of digits describing the >quantity and value of each digit thus >2 1 produces the next line >1 2, 1 1 > >Simple - but who can see how to persuade VB6 to generate this for me >assigning a unique colour to each number? I want to see if a pattern >develops!! Is this homework of some sort? The reson I ask is that I'm sure this exact same question was asked not too long ago. -- Jan Hyde https://mvp.support.microsoft.com/profile/Jan.Hyde |
|
|||
|
Re: Project
>>Simple - but who can see how to persuade VB6 to generate this for me >>assigning a unique colour to each number? I want to see if a pattern >>develops!! > > Is this homework of some sort? The reson I ask is that I'm > sure this exact same question was asked not too long ago. > > > -- > Jan Hyde > > https://mvp.support.microsoft.com/profile/Jan.Hyde It's homework, alright... I remember my ex had that very problem to solve in her first semester of programming class. ![]() But now it seems "lol" has broken the first rule of modern homework... "don't just get your answers off the internet". |
|
|||
|
Re: Project
"Jan Hyde (VB MVP)" <StellaDrinker@REMOVE.ME.uboot.com> wrote in message news fp5r31vtcqe6o3uvsarj1rcsqtat9lke1@4ax.com... > "Lol" <xguilmer@blueblunder.co.uk>'s wild thoughts were > released on Wed, 13 Feb 2008 09:20:15 GMT bearing the > following fruit: > >>here's a pattern >>1 >>1 1 >>2 1 >>1 2 1 1 >>1 1 1 2 2 1 >>3 1 2 2 1 1 >>1 3 1 1 2 2 2 1 >>1 1 1 3 2 1 3 2 1 1 >> >>each line describes the line above, in pairs of digits describing the >>quantity and value of each digit thus >>2 1 produces the next line >>1 2, 1 1 >> >>Simple - but who can see how to persuade VB6 to generate this for me >>assigning a unique colour to each number? I want to see if a pattern >>develops!! > > Is this homework of some sort? The reson I ask is that I'm > sure this exact same question was asked not too long ago. > > > -- > Jan Hyde > > https://mvp.support.microsoft.com/profile/Jan.Hyde No - the sequence was a puzzle in a school maths challenge day, and I wondered if it could be VB 6-ed but couldn't see how to do it. If it's an old chestnut then I'll probably find an answer somewhere... Lol |
|
|||
|
Re: Project
On Wed, 13 Feb 2008 09:20:15 GMT, Lol wrote:
> here's a pattern > 1 > 1 1 > 2 1 > 1 2 1 1 > 1 1 1 2 2 1 > 3 1 2 2 1 1 > 1 3 1 1 2 2 2 1 > 1 1 1 3 2 1 3 2 1 1 > > each line describes the line above, in pairs of digits describing > the quantity and value of each digit thus > 2 1 produces the next line > 1 2, 1 1 > > Simple - but who can see how to persuade VB6 to generate this for > me assigning a unique colour to each number? I want to see if a > pattern develops!! Personally, I'd use QuickBASIC, or PowerBASIC for DOS. (I find coloring text to be trivial under DOS. Easy under Windows, easier under DOS.) Hint: if you iterate a few more steps, you might notice an *extremely obvious* pattern developing. (No programming required -- just use pen & paper.) -- Bad command or filename. Go stand in the corner. -- Posted via a free Usenet account from http://www.teranews.com |
![]() |
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|