Search found 151 matches

by Mac
Sun Sep 02, 2007 2:22 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Best iterating through all values for all elements in array
Replies: 14
Views: 9644

To go back to the Sudoku example, the difference with that is that you automatically assume that the start grid you have, only has one solution, so you're just looking for the first solution that matches the start grid and the rules you've set up. You missed something there. If you run my program w...
by Mac
Sat Sep 01, 2007 3:01 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Read/Data error!
Replies: 7
Views: 6556

Mentat wrote:Is there a way around this?
No. Anything after DATA is counted as data. There is no way to put a remark on a DATA line.

Of course, you can always do this
' Here is some data
DATA Blah
DATA Blah
' And here is some other data
DATA Blah

Mac
by Mac
Fri Aug 31, 2007 8:29 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Best iterating through all values for all elements in array
Replies: 14
Views: 9644

It's that kind of speed and programming I would like to learn. So, did you get your answer above? It reduces to "Don't exhaustively do all possible cases but instead, figure out a way to do only some cases". It was shown how to do that with a SuDoku solver. Do you have other applications that you w...
by Mac
Tue Aug 28, 2007 9:04 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Best iterating through all values for all elements in array
Replies: 14
Views: 9644

What I'm having trouble comprehending as well, is that there's a very high number of combinations for Sudokus, yet I've seen QuickBasic programs that solve them in a matter of seconds. It's that kind of speed and programming I would like to learn. Well, I read all your words several times and slept...
by Mac
Fri Aug 24, 2007 12:23 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Qbasic Virus MUHAHAHAHA!!!
Replies: 8
Views: 7382

ill give you an example for a virus No, Lee, that is an example of a "Trojan Horse". A "Trojan Horse" is a program that you hope the user will run. When they do so, it does non-intended stuff. A "Virus" is software that the user will inadvertently execute because it is inserted somewhere in the use...
by Mac
Thu Aug 23, 2007 9:42 am
Forum: QBASIC and QB64 Questions & Answers
Topic: YAY!! I made a sucky game...I'm so proud of myself
Replies: 5
Views: 4881

Good

Good first game except level 4. Bogus. It is the equivalent of simply saying "Guess a number between 1 to 1000, if you guess wrong, you lose." Couple of bugs: 1) You can run off the edge of the world in the zero directions as well as the 25,80 that you tested for. 2) To print the guy, put a semi-col...
by Mac
Thu Aug 23, 2007 9:08 am
Forum: QBASIC and QB64 Questions & Answers
Topic: INPUT and 255
Replies: 7
Views: 5832

Re: INPUT and 255

type in 255 characters at the QBasic prompt. Well, the INPUT idea of Nixon would work. But it would REALLY be nice of you to answer Moneo's question: Why do you need to enter so much? What kind of data are you entering? a) It could be we could come up with a bright idea b) It would satisfy our curi...
by Mac
Thu Aug 23, 2007 8:49 am
Forum: QBASIC and QB64 Questions & Answers
Topic: IMPORTANT QUESTION
Replies: 7
Views: 5076

Re: IMPORTANT QUESTION

How do you open/use ports in QB? I think it can't be done unless you are on a pure DOS system (where DOS is the only operating system). You need a language like Visual Basic which was developed to be an integral part of the Windows operating system, if you plan that people can use your program from...
by Mac
Wed Aug 15, 2007 3:19 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Mouse scrolling in QB
Replies: 5
Views: 5169

Don't think so

I note that in Windows that contain NOTEPAD, Word, IE, etc., the mouse wheel button works to do automatic scrolling. BUT in Windows running under CMD or Command such as QBasic and Edit, it doesn't work. My conclusion: there is no way you can get QBasic or any other program running in DOS to recogniz...
by Mac
Tue Aug 14, 2007 7:24 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Maze algorithms
Replies: 5
Views: 4775

I voted array

Try my Maze from Hell
http://www.network54.com/Forum/190883/m ... 1021149818

I've seen people actually solve it!

Mac
by Mac
Mon Aug 06, 2007 2:34 pm
Forum: General Discussion
Topic: Encryption and XOR
Replies: 15
Views: 16160

well...can anyone make something like that "Enigma" code in ww2? just a suggestion..i don't want it..but i think that's best encryption? When I saw this I assumed the Enigma was the machine (hence WW2) The enigma was pretty good, but as a method for computer encryption, it is much too complicated f...