Search found 394 matches
- Sat Jan 27, 2007 12:49 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: How to make the computer think that a key has been pressed?
- Replies: 19
- Views: 61093
- Sat Jan 27, 2007 12:47 pm
- Forum: General Discussion
- Topic: x + x^2=90
- Replies: 3
- Views: 18639
Yes, I think the quadratic formula would be the best way to solve it, since it works for ANY quadratic. PosX=(-B+SQR((B^2)-(4*A*C)))/(2*A) NegX=(-B-SQR((B^2)-(4*A*C)))/(2*A) as the quadratic formula has a plus and minus. However, if the discriminant (B^2-4AC) is negative, QB will generate an error b...
- Mon Jan 22, 2007 6:39 pm
- Forum: News and Announcements
- Topic: qbinux
- Replies: 140
- Views: 321030
- Wed Jan 17, 2007 4:37 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: How to make the computer think that a key has been pressed?
- Replies: 19
- Views: 61093
Re: How to make the computer think that a key has been press
How can you make the computer think that a key has been pressed? You can do this in QB by using INKEY$ or ON KEY. But you should expalin in more detail what you need or want to do. Regards..... Moneo He made a post about a keylogger before... So I'm guessing he wants to make a program that gets a k...
- Wed Jan 17, 2007 4:29 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Formula to Calculate the Cube Root of a Number
- Replies: 3
- Views: 12691
I don't know if this works in QBASIC, but another way to do it is to raise it to the power of 1/3. Example: num = num ^ (1/3) I don't have a terminal I can test this out on, but it is a mathmatically sound way to do it. If it doesn't work, it's QB's problem. If that does work, then this is a functio...
- Wed Jan 17, 2007 8:52 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: How to make the computer think that a key has been pressed?
- Replies: 19
- Views: 61093
- Fri Jan 12, 2007 7:40 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Splitting an Integral Number Into Two Parts
- Replies: 13
- Views: 24299
- Fri Jan 12, 2007 6:30 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Splitting an Integral Number Into Two Parts
- Replies: 13
- Views: 24299
Why not just do...?
Code: Select all
Answer=1.75
DecimalNum=Answer-INT(Answer)
IntegerNum=INT(Answer)
- Tue Jan 02, 2007 1:51 pm
- Forum: News and Announcements
- Topic: The Qmunity (Current: season 3 episode 5)
- Replies: 32
- Views: 90585
I have never seen these before.... They're great! It's better to let the world know that these types of people and opinions do exist, rather than to censor and ban these people just because you don't agree with them. I would rather talk to them and find out why they feel that way rather than persecu...
- Mon Dec 18, 2006 3:29 pm
- Forum: General Discussion
- Topic: First graphic program... congratulate me...
- Replies: 1
- Views: 5619
First graphic program... congratulate me...
This is one of those inkblot tests that psychiatrists give you to find out if you are crazy. (If you're a programmer, then doesn't that qualify enough? :wink: ) Note: Make sure your BREAK works! (ex DOSBox under Linux doesn't!) There seems to be an error! (read below the code) RANDOMIZE TIMER SCREEN...
- Mon Dec 18, 2006 3:01 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Base conversion code - Comments, please!
- Replies: 4
- Views: 10389
- Fri Dec 15, 2006 9:20 am
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Base conversion code - Comments, please!
- Replies: 4
- Views: 10389
One thing I did before was this: I tried to open the TI-84 Plus grpahing calculator's operating system in a hex editor, in order to see if there was something I could mess around with. What I found out is this: Instead of being written in hexadecimal like this: (as viewed as ASCII text) }╞♫ It was w...
- Mon Nov 27, 2006 4:18 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Small code question
- Replies: 19
- Views: 64649
I'll give in. RANDOMIZE TIMER SCREEN 13 FOR I = 1 TO 8 CIRCLE (INT(RND * 320), INT(RND * 200)), INT(RND * 20), 0 NEXT Your job is to figure out why nothing shows up, *evil laugh*. Hint: it's in the circle command. I'll give another hint - QB help is your friend. Look at the parameters, see what the...
- Tue Nov 21, 2006 4:40 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Whats your opinion?
- Replies: 10
- Views: 16704
- Tue Nov 21, 2006 4:35 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Someone Please Help!!!!
- Replies: 7
- Views: 12038
- Mon Nov 20, 2006 5:50 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Someone Please Help!!!!
- Replies: 7
- Views: 12038
- Mon Nov 20, 2006 5:48 pm
- Forum: General Discussion
- Topic: Encryption and XOR
- Replies: 15
- Views: 32566
- Mon Nov 20, 2006 4:32 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Someone Please Help!!!!
- Replies: 7
- Views: 12038
I'm sorry, but you should pay more attention in your classes, as your professor would not give you an assignment that was not possible from what they have taught you. If you can't make the program, you shouldn't expect someone else to do it for you. Get extra help from your teacher. Then, you will u...
- Mon Nov 20, 2006 4:24 pm
- Forum: QBASIC and QB64 Questions & Answers
- Topic: Someone Please Help!!!!
- Replies: 7
- Views: 12038
OK, here's an unwritten law of Pete's QB forums. Please do not post homework assignments without at least showing that you've put some effort into it. It generally shows apathy towards it. Anyway, I will give you a quick layout of how the program should run. 1. Put your list of numbers into your pro...
- Mon Nov 20, 2006 4:16 pm
- Forum: General Discussion
- Topic: Encryption and XOR
- Replies: 15
- Views: 32566
The Enigma only encrypts letters, right? (ASCII 65-91) - Therefore, not all 256-characters can't be encrypted, as only 26 are available.
Source: http://en.wikipedia.org/wiki/Enigma_machine
Source: http://en.wikipedia.org/wiki/Enigma_machine