Sign in to follow this  
pradeeppa

Scheme Scripting language

Recommended Posts

Hi , I have written a code in Scheme which has no syntax errors ( i used DrScheme to test it). I have created arrays using ' vector-set! ' and accessed the array elements using ' vector-ref ' commands... but the problem is that i'm not able to display it on screen using ' display ' command. Can you help me out? If possible can you send me the correct syntax of displaying them. Thanking You Pradeep

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:


I have written a code in Scheme which has no syntax errors ( i used DrScheme to test it). I have created arrays using
' vector-set! ' and accessed the array elements using ' vector-ref ' commands... but the problem is that i'm not able to display it on screen using
' display ' command. Can you help me out?


I assume you want to display the vector graphically.

The display command won't help you here: you want to initialize a drawing window and draw the line representing your vector in that wndow. This means you'll need a windowing and graphics library.

DrScheme comes with the MrEd library, which allows you to do just this. Here's the documentation:

http://download.plt-scheme.org/doc/mred/

Also, I'd recommend posting this either in General Programming or the SICP study group forum: it isn't really in the scope of this forum.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this