Search found 8 matches

by RaydPanda
Mon Nov 09, 2009 11:49 am
Forum: Common Lisp
Topic: Newbie needs help please
Replies: 20
Views: 18703

Re: Newbie needs help please

I came to the same conclusion just before I saw your post... and what wonder: Now the decryption works as well. :D I was thinking too strictly in terms of the already existing functions so I didn't notice the algebraic error, silly me. Well, the nice thing is that I now have a fully functional progr...
by RaydPanda
Sun Nov 08, 2009 1:40 pm
Forum: Common Lisp
Topic: Newbie needs help please
Replies: 20
Views: 18703

Re: Newbie needs help please

:shock: You guys are unbelievable! Thanks a lot! And yes, it really seems not this hard in retrospect, but that is nearly always the case. ;) Now I only have to find out how to make the matching decryption and I'm done for good. Unfortunately something along the following lines doesn't work since it...
by RaydPanda
Fri Nov 06, 2009 6:28 am
Forum: Common Lisp
Topic: Newbie needs help please
Replies: 20
Views: 18703

Re: Newbie needs help please

Hm, I don't seem to get it right... what I managed until now is a function that actually encrypts a character with a key character. I need to find a possibility to use that function on two strings instead of two characters. The functions so far look like this: ; 1) Program that takes in a word(given...
by RaydPanda
Wed Nov 04, 2009 3:41 am
Forum: Common Lisp
Topic: Newbie needs help please
Replies: 20
Views: 18703

Re: Newbie needs help please

Ah, I didn't realize that the uppercase letter was the problem, I thought the white space caused the error. Now I got the problem fixed by simply changing my *alphabet* to: (defparameter *alphabet* " aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ,.0123456789") Which gives me the foll...
by RaydPanda
Tue Nov 03, 2009 12:38 pm
Forum: Common Lisp
Topic: Newbie needs help please
Replies: 20
Views: 18703

Re: Newbie needs help please

It works! At least on single words. But non the less, thank you! I really didn't think I'd ever come this far, you helped me a lot and gave me the right hints. My program looks now like this: ; 1) Program that takes in a word(given as a string) plus a number and encrypts the word using Caesar's Ciph...
by RaydPanda
Mon Nov 02, 2009 12:10 pm
Forum: Common Lisp
Topic: Newbie needs help please
Replies: 20
Views: 18703

Re: Newbie needs help please

First off, thanks to all of you! By now I got far enough to encrypt a single character. I try now to get it working on a string but to no avail so far. The code I have until now looks like this: ; Alphabet as parameter plus one whitespace at index 0 (defparameter *alphabet* " abcdefghijklmnopqr...
by RaydPanda
Sun Nov 01, 2009 7:11 am
Forum: Common Lisp
Topic: Newbie needs help please
Replies: 20
Views: 18703

Re: Newbie needs help please

Thanks for your posts! @Ramarren Well, I guess my university course is not the best since I wasn't told about sequences and my teachers use "LISP" as if it is the correct form... thanks for the enlightenment! I'll try my luck with these, maybe I get some results. :) @sinnatag My problem wi...
by RaydPanda
Thu Oct 29, 2009 12:01 pm
Forum: Common Lisp
Topic: Newbie needs help please
Replies: 20
Views: 18703

Newbie needs help please

Hello all, I am a big LISP-Newb and am struggling with a program that is supposed to encrypt a string with Caesar's cipher. What I have in mind is a function that takes in 2 arguments: a string and a number to specify the modulus. Something along the lines: (defun c-encrypt (string number) ("lo...