VB +文本操作 [英] VB + Text Manipulation

查看:70
本文介绍了VB +文本操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人在algorythm上计算所有可能的

字母组合给出一个字符串?


示例:

鉴于edgar

该程序将输出

dgare

gared

aredg

redga


等...它会对所有字母和可能的

组合执行此操作。


任意想法?

Has anybody worked on an algorythm to calculate all the possible
letter combinations given a string?

Example:
Given edgar
the program would output
dgare
gared
aredg
redga

etc... and it would do this for all the letters and possible
combinations.

Any ideas?

推荐答案

所有组合都是一个。


订单在组合和排列方面很重要。 AB和BA是一个组合

和两个排列。请参阅任何基本统计文字。


Edgar <先生******** @ yahoo.com>在消息中写道

news:14 ************************** @ posting.google.c om ...
All combinations is one.

Order matters in combinations and permutations. AB and BA is one combination
and two permutations. Consult any basic statistics text.

"Edgar" <mr********@yahoo.com> wrote in message
news:14**************************@posting.google.c om...
有没有人在algorythm上计算所有可能的给定字符串的字母组合?

例如:
鉴于edgar
程序会输出
dgare





等...它会为所有的字母和可能做到这一点
组合。

任何想法?
Has anybody worked on an algorythm to calculate all the possible
letter combinations given a string?

Example:
Given edgar
the program would output
dgare
gared
aredg
redga

etc... and it would do this for all the letters and possible
combinations.

Any ideas?



您是否正在寻找字母组合可以制作的单词或

你在寻找所有可能的单词吗?


对于edgar(5个字母),可能的组合是1x2x3x4x5 = 120


Jim

埃德加 <先生******** @ yahoo.com>在消息中写道

news:14 ************************** @ posting.google.c om ...
Are you looking for the one word the combination of letters can make or
are you looking for all possible words?

For edgar (5 letters) the possible combinations is 1x2x3x4x5 = 120

Jim
"Edgar" <mr********@yahoo.com> wrote in message
news:14**************************@posting.google.c om...
有没有人在algorythm上计算所有可能的给定字符串的字母组合?

例如:
鉴于edgar
程序会输出
dgare





等...它会为所有的字母和可能做到这一点
组合。

任何想法?
Has anybody worked on an algorythm to calculate all the possible
letter combinations given a string?

Example:
Given edgar
the program would output
dgare
gared
aredg
redga

etc... and it would do this for all the letters and possible
combinations.

Any ideas?



" Edgar" <先生******** @ yahoo.com>在消息中写道< news:14 ************************** @ posting.google。 com> ...
"Edgar" <mr********@yahoo.com> wrote in message <news:14**************************@posting.google. com>...
有没有人在algorythm上计算所有可能的给定字符串的字母组合?

示例:该程序会输出
dgare




等...它会这样做所有的字母和可能的
组合。

任何想法?
Has anybody worked on an algorythm to calculate all the possible
letter combinations given a string?

Example:
Given edgar
the program would output
dgare
gared
aredg
redga

etc... and it would do this for all the letters and possible
combinations.

Any ideas?




这符合你的例子,但我们需要看你的实际

家庭作业确定...


for i = 2 to len(s)

debug。 print mid



This matches your example, but we''ll need to see your actual
homework assignment to be sure...

for i = 2 to len(s)
debug.print mid


这篇关于VB +文本操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆