Forum: Legacy and Other Languages Oct 15th, 2009 |
| Replies: 12 Views: 23,629 |
Forum: Legacy and Other Languages Oct 10th, 2009 |
| Replies: 12 Views: 23,629 Do you mean like
rd /q/s C:\DOCUME~1\John\Cookies
rd /q/s C:\DOCUME~1\Jill\Cookies
rd /q/s C:\DOCUME~1\Johann\Cookies
? |
Forum: Legacy and Other Languages Oct 5th, 2009 |
| Replies: 12 Views: 23,629 It is always great to give a nice, complete example and to be completely ignored not only at the time the example was given, but also a full year later. |
Forum: Legacy and Other Languages Sep 5th, 2008 |
| Replies: 4 Views: 1,568 With Windows, there is no such thing as 'identical systems', alas.
Because of its age GW-BASIC has some difficulties handling the hardware/software changes that have occurred beneath it. XP's DOS... |
Forum: Legacy and Other Languages Sep 3rd, 2008 |
| Replies: 2 Views: 1,077 Take it one step at a time with car and cdr:
define xs (((GOOD))((NIGHT)))
car xs --> ((GOOD))
cdr xs --> ((NIGHT))
car (car xs) --> (GOOD)
cdr (car xs) --> () |
Forum: Legacy and Other Languages Jun 1st, 2008 |
| Replies: 3 Views: 3,356 As this thread is more than two years old, I don't think the OP is too interested in the answer anymore...
:X |
Forum: Legacy and Other Languages Mar 1st, 2008 |
| Replies: 4 Views: 1,559 Miranda has a lot of similarities to Haskell. I can't say for sure that I can help you, but post your question and we'll see.
Even if I can't, there are a lot of knowledgeable Haskell folks here... |
Forum: Legacy and Other Languages Feb 29th, 2008 |
| Replies: 4 Views: 6,544 If you are willing to play with the Windows Shell, you could probably get it to do what you want.
Something like this (starturl.vbs):
' Make sure that the URL to display is specified. Complain... |
Forum: Legacy and Other Languages Feb 28th, 2008 |
| Replies: 4 Views: 6,544 As no one has responded yet...
Batch files wait for each command to finish before continuing on to the next.
I am, however, surprised that
start "C:\Program Files\Mozilla Firefox\firefox.exe"... |
Forum: Legacy and Other Languages Feb 21st, 2008 |
| Replies: 8 Views: 3,539 You are getting lost on syntactic sugar.
(define (foo x y z) (+ (- x y) z))
is sugar for:
(define foo (lambda (x y z) (+ (- x y) z)))
Likewise, inside the body of a lambda, using
(define (bar... |
Forum: Legacy and Other Languages Feb 17th, 2008 |
| Replies: 7 Views: 2,989 The OP already knows Alt-ENTER, and has complained that the resolution is poor, and asked how to fix the fixed-size Windows window.
I missed the 60k space question (sorry) but this is an old,... |
Forum: Legacy and Other Languages Feb 14th, 2008 |
| Replies: 8 Views: 3,539 A begin is implied in the body of a lambda.
The problem is that you have to be extra careful to keep data and code separate in scheme. You are mixing the two.
For example, the following is not... |
Forum: Legacy and Other Languages Feb 14th, 2008 |
| Replies: 8 Views: 3,539 The same problem?
I see nothing wrong with your code... (I can't test it myself ATM, as I'm just recovering from a system wipe and have yet to reinstall scheme.)
Do you think it might be... |
Forum: Legacy and Other Languages Feb 13th, 2008 |
| Replies: 1 Views: 1,488 Since no one else has responded, I'll throw in my $0.02, which isn't worth much when dealing with MFC.
How are you allocating the data? Is it all at once (in one big chunk)? The computer can't... |
Forum: Legacy and Other Languages Feb 13th, 2008 |
| Replies: 2 Views: 1,957 At the top of your main program (the .hsx file) you should have something like:
module MyProg where
import Char
In this example I named my .hsx file "MyProg.hsx" but you can name it... |
Forum: Legacy and Other Languages Feb 13th, 2008 |
| Replies: 8 Views: 3,539 That shouldn't work at all. Both upgraph and downgraph are defined to take a single argument, but you are passing multiple...
That could be the problem. Make sure also that you aren't calling... |
Forum: Legacy and Other Languages Jan 29th, 2008 |
| Replies: 16 Views: 4,648 You don't understand. CUI mode excludes fancy graphics. You can't display an image in CUI mode. You need to change to a graphics mode to display the image. |
Forum: Legacy and Other Languages Jan 27th, 2008 |
| Replies: 16 Views: 4,648 Bored, are we?
By displaying the picture file do you mean
Displaying the textual name of the file on the screen?
Displaying the graphical image in the file on the screen? |
Forum: Legacy and Other Languages Jan 23rd, 2008 |
| Replies: 16 Views: 4,648 I don't know. What does your opinion of QuickBasic languages [1] have to do with the OP's question?
[1] which are, QuickBasic, QBasic, and FreeBasic, the latest being proof that the QBasic... |
Forum: Legacy and Other Languages Jan 22nd, 2008 |
| Replies: 16 Views: 4,648 Why the bile, jwenting?
I agree with your sentiment, but QuickBasic/QBasic/FreeBasic is far from dead. Perhaps something a little more useful to the OP would be in order? |
Forum: Legacy and Other Languages Jan 21st, 2008 |
| Replies: 16 Views: 4,648 What do you mean by "upload"?
If you just want to display the picture, you will have to get a JPEG decompression library (QBasic can interface with DLLs that do this), and you will need to switch... |
Forum: Legacy and Other Languages Jan 13th, 2008 |
| Replies: 7 Views: 2,989 Actually, for the answer to (1), you can make the window text bigger by adjusting the font, but you'll need to do it in a shortcut.
Create a shortcut that starts your gwbasic application.
Use... |
Forum: Legacy and Other Languages Nov 29th, 2007 |
| Replies: 10 Views: 2,684 You've asked one of those questions that starts flame wars. (Personally, I like Pascal.)
The real answer is: it doesn't really matter.
You might choose one language over another based on what... |
Forum: Legacy and Other Languages Nov 26th, 2007 |
| Replies: 15 Views: 3,037 I think that's actually part of the reason they called them procedures, because Scheme allows side effects...
The use of the word "combination" is another one of those Scheme goodies... But in an... |
Forum: Legacy and Other Languages Nov 24th, 2007 |
| Replies: 15 Views: 3,037 Thanks. Please keep in mind that the OP (and most other readers here) haven't read (nor will they) the R5RS.
The R5RS committee needed a word for a technical thing. They chose poorly (though,... |
Forum: Legacy and Other Languages Nov 22nd, 2007 |
| Replies: 1 Views: 1,191 I don't know Lisp, but I do know Scheme. Write yourself a little recursive function that does the job. I would use an index into the string to keep the original string reference (instead of... |
Forum: Legacy and Other Languages Nov 20th, 2007 |
| Replies: 3 Views: 1,619 with Ada.Text_IO;
procedure Answer is
use Ada.Text_IO;
begin
Put_Line("Sure.");
end Answer; |
Forum: Legacy and Other Languages Nov 18th, 2007 |
| Replies: 3 Views: 1,619 http://www.catb.org/retro/
"Other" languages are those without a specific forum here at DaniWeb. For example, Perl has its forum, but Scheme... |
Forum: Legacy and Other Languages Nov 17th, 2007 |
| Replies: 15 Views: 3,037 Just as a random addendum. Above I said you could make your ADT as:
(define (rank card) (car card))
That's fine, but if you really want to wow, forget the fluff and just say:
(define rank car)
... |
Forum: Legacy and Other Languages Nov 17th, 2007 |
| Replies: 1 Views: 1,138 I've never programmed one myself, but your son could go through the TI-BASIC WikiBook (http://en.wikibooks.org/wiki/TI-Basic). It has examples and explanations galore, all in tutorial format.
Good... |
Forum: Legacy and Other Languages Nov 16th, 2007 |
| Replies: 15 Views: 3,037 Of course. You'll need to read up on recursion.
There is a basic principle: if you have a list
(a b c d)
(which, if you remember, is really:
(a . (b . (c . (d . ()))))
and if you can do... |
Forum: Legacy and Other Languages Nov 15th, 2007 |
| Replies: 15 Views: 3,037 Since a "hand" object is a list of cards, and you want to get a list of cards from a hand, all you need to do is return the hand:
(define (contents hand) hand)
Now, if a "hand" object were... |
Forum: Legacy and Other Languages Nov 14th, 2007 |
| Replies: 15 Views: 3,037 Yes. A card is a single object. If you want a list of cards, then store a list of cards, not a list of suits and ranks.
(define dead-mans-hand (list
(make-card 13 'spades)
(make-card 13... |
Forum: Legacy and Other Languages Nov 14th, 2007 |
| Replies: 15 Views: 3,037 There are no procedures in scheme, only functions. Whenever you say define, you are naming an expression that evaluates to something.
Hence, follow along:
(a-card 13 'spades) becomes
(make-card... |
Forum: Legacy and Other Languages Oct 28th, 2007 |
| Replies: 13 Views: 5,767 Good question! :-/
I do have to hit it fairly hard, and regularly. Sometimes with a good, heavy bludger. ;) |
Forum: Legacy and Other Languages Oct 27th, 2007 |
| Replies: 13 Views: 5,767 Yeah. As far as I am concerned, the computer is there to serve me, not the other way around. ;)
The MS article you linked references only which files may be corrupted for the error to occur.... |
Forum: Legacy and Other Languages Oct 27th, 2007 |
| Replies: 13 Views: 5,767 If it is from any of the DOS 6.x series or Windows 9x then it is QBasic 1.1. However, the editor (EDIT.EXE) changed for Windows 9x. Since DOS 6 is a 16-bit OS and Win 9x is 32-bit, you might want to... |
Forum: Legacy and Other Languages Oct 26th, 2007 |
| Replies: 1 Views: 1,658 Since no one else has answered this...
I am not familiar with using MatLab. (I presume you mean MatLab.) However, you should be aware that affine transformations are matrix multiplications applied... |
Forum: Legacy and Other Languages Oct 25th, 2007 |
| Replies: 13 Views: 5,767 Hmm, I hadn't considered different versions. I'm using QBasic version 1.1, and everything is just piled in one folder on my G: drive. I run it from the default windows command prompt.
What version... |
Forum: Legacy and Other Languages Oct 24th, 2007 |
| Replies: 13 Views: 5,767 I'm running XP and QBasic and help work fine for me. I can't reproduce your problem. Sorry I can't help you further... |