Settings

The page will reload to apply your changes.
Theme

ASCII Art Font

ASCII Art Menu

Original Usenet message from alt.ascii-art, 2 Apr 2002.
Re: Character List

Re: Character List

"Rafal 'Raf256' Maj" <raf...@szybkapoczta.pl> wrote:

>bug <my....@my.sig> wrote in
>news:3k5...@4ax.com: 
>
>>#include <iostream>
>> int main()
>> {
>>      for (int i=32; i<128; i++)
>>           std::cout << (char) i;
>>      return 0;
>> }

#!/usr/bin/perl
for(32..126){print chr;}

>#include <iostream.h>
>#include <conio.h>
>int main()  {
>  clrscr();
>  int x=0;
>  for (int i=32; i<=126; i++) {
>    if (i<100) cout<<'0';
>    cout<<i<<' '<<(char)i<<" | ";
>    if (x++>6) { cout<<endl; x=0; }
>  }
>  return 0;
>}

#!/usr/bin/perl
for(32..126){
$^A="";
formline '@##',($_); $^A =~ s/ /0/;
print $^A." ".(chr $_)." |";
if ($x++>6) {print "\n";$x=0;}
}

not very elegant, but this is my first sensible perl script.

Perhaps this here is better:

#!/usr/bin/perl
for(32..126){
print (($_<100?"0":"").$_." ".(chr $_)." |".(++$x%6==0?"\n":""));
}

Michael

Original message headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f996b,694b2c31500797b4
X-Google-Attributes: gidf996b,public
X-Google-ArrivalTime: 2002-04-02 11:58:42 PST
Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!news-ber1.dfn.de!fu-berlin.de!uni-berlin.de!dialin-212-144-165-187.arcor-ip.NET!not-for-mail
From: Michael Schierl <sch...@gmx.de>
Newsgroups: alt.ascii-art
Subject: Re: Character List
Date: Tue, 02 Apr 2002 21:58:16 +0200
Lines: 47
Message-ID: <a8d2hg$r5kdi$3...@ID-39741.news.dfncis.de>
References: <200...@mb-fl.aol.com> <3k5...@4ax.com> <Xns91E3600EED93Erfdfciasdsdj412tr@213.180.128.20>
Reply-To: sch...@gmx.de
NNTP-Posting-Host: dialin-212-144-165-187.arcor-ip.net (212.144.165.187)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Trace: fu-berlin.de 1017777520 28496306 212.144.165.187 (16 [39741])
X-Newsreader: Forte Agent 1.8/32.548
Xref: archiver1.google.com alt.ascii-art:16546

Related ASCII art in the Gallery

Explore these categories from our collection of 11,000+ artworks:

About this message. This message was posted publicly to the newsgroup alt.ascii-art in 2002 and is mirrored here unchanged as part of the Historic Archives – only email addresses are masked. The artwork and text belong to their original authors: if you copy a piece, keep the artist's initials or signature intact and credit them where you can. Are you the author? Contact us to get your posts attributed, connected to your artist profile, or removed.

Report this message

Help us keep the archive clean and accurate. Reports are reviewed by a person – nothing is changed automatically.

Help classify this post