Print white spaces

Discussion of Common Lisp

Print white spaces

Postby aedsferrao » Wed Nov 16, 2011 7:06 am

Hi!

I have another question, how can i print white spaces??

I need to print this

Code: Select all
O   *   O
*X  O*  ****
**X  **O  O**
*****XX*****


Thank you.
Last edited by nuntius on Wed Nov 16, 2011 10:11 pm, edited 1 time in total.
Reason: add code tag
aedsferrao
 
Posts: 3
Joined: Tue Nov 08, 2011 1:04 pm

Re: Print white spaces

Postby nuntius » Wed Nov 16, 2011 10:10 pm

string literal: (print " ")

character literal: (format t "~A" #\Space)
User avatar
nuntius
 
Posts: 498
Joined: Sat Aug 09, 2008 10:44 am
Location: Burlington, MA


Return to Common Lisp

Who is online

Users browsing this forum: No registered users and 1 guest