Article View: comp.lang.pascal.ansi-iso
Article #3all possible combinations
From: Andrew
Date: Mon, 06 Mar 2000 00:00
Date: Mon, 06 Mar 2000 00:00
30 lines
1548 bytes
1548 bytes
Anyone have any pascal code for all possible combinations of a set? So if we start with '1','2','3' the possible combinations are: 1 2 3 1 2 1 3 2 3 1 2 3 This seems to be a FAQ on discussion groups in general, but I could not find anything in Pascal. I found some C++ code in another group but it looks like bad pseudocode to me -- I'm kindof a pascal diehard. But I'm not a big programmer and this problem has my brain in knots right now. A response in any flavor of pascal would be much appreciated. TIA, Andrew -- Andrew noymer@my-deja.com Sent via Deja.com http://www.deja.com/ Before you buy.
Technical Details
Message-ID:
<89v8r3$vag$1@nnrp1.deja.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111659,77a4248f898f7bd2,start X-Google-Attributes: gid111659,public X-Google-Thread: 108ebd,77a4248f898f7bd2,start X-Google-Attributes: gid108ebd,public X-Google-Thread: 10c950,77a4248f898f7bd2,start X-Google-Attributes: gid10c950,public X-Google-Thread: 10261c,77a4248f898f7bd2,start X-Google-Attributes: gid10261c,public From: Andrew <noymer@my-deja.com> Subject: all possible combinations Date: 2000/03/06 Message-ID: <89v8r3$vag$1@nnrp1.deja.com> X-Deja-AN: 593614127 X-Http-Proxy: 1.0 x40.deja.com:80 (Squid/1.1.22) for client 63.23.28.35 Organization: Deja.com - Before you buy. X-Article-Creation-Date: Mon Mar 06 03:31:47 2000 GMT X-MyDeja-Info: XMYDJUIDnoymer Newsgroups: comp.lang.pascal.ansi-iso,comp.lang.pascal.misc,borland.public.turbopascal,comp.lang.pascal.borland X-Http-User-Agent: Mozilla/4.51 [en] (Win98; U)