Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 18th, 2012, 05:13 AM
babinos babinos is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 2 babinos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 41 sec
Reputation Power: 0
Algorythm Task

hello there,
as new in delphi and generally in porgramming, i want to create a list of swaping chars.
What do i mean....
All keyboard keys result to all possible combination!
A example will be very usefull so:
the choice of chars will be :
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*();:'"/\}{[],.><
and the result for eight limit number like this:
8!QvSe:/
lY^Ne[(T
->7,agUo
l4};b]*P
&(#H!9Hs
>yj4l@NB
dm[i$w06
&O(d<*o8
n'2c{ib)
p-"V|4"/
S"tV0Fh-
99/&znG0
]2>sEs!9
NAE="9I2
<p%Zw!2h
2hboED^E
1EnL5FYx
yA);(1i<
m^[owOW2
dJ?#)'l*

or just like using a array ( i suppose its easier) to have a result like this:

00000000
00000001
00000002
00000003
....
0000000a
0000000b
....
0000000A
0000000B
...
0000000? <-- last box of arrow
....
00000010
00000011
etc..
11111110
11111111
11111112


Thank you for any suggestion, solution

Reply With Quote
  #2  
Old April 18th, 2012, 10:32 PM
clivew clivew is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 2,045 clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 37 m
Reputation Power: 382
Hard to be sure what you are looking for.

If you are looking to pick 8 characters at random from the full list then look up the random function.

Reply With Quote
  #3  
Old April 19th, 2012, 02:36 AM
babinos babinos is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Posts: 2 babinos User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 34 m 41 sec
Reputation Power: 0
Quote:
Originally Posted by clivew
Hard to be sure what you are looking for.

If you are looking to pick 8 characters at random from the full list then look up the random function.


Thank you for answering. Well i have done solutions with randomize char but it is not what i need.
My basic idea is to create a result of random string within a length, but i need to print it all the possible combination of selected string. If i use just random fuction i will not get 100% of combination. To do it i suppose i ll need an array to load strings and call them one by one as a stable until it finish all combination with full array. My first question is if i need as many array as my result lenght will be?

Reply With Quote
  #4  
Old April 19th, 2012, 02:27 PM
clivew clivew is offline
Contributing User
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 2,045 clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level)clivew User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 6 Days 2 h 37 m
Reputation Power: 382
Sorry I do not understand what you are trying to achieve.

Last edited by clivew : April 19th, 2012 at 02:31 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Algorythm Task

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap