具有挑战性的文本掩盖问题 [英] Challenging text masking problem

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

问题描述



我一直在努力解决这个编程问题,所以我想b $ b我认为我会把它放到讨论区。我正在尝试设计一个Mask功能。

看看你是否可以找到它的代码...


解释这个的最好方法是给出一个例子,说明

应该做什么。


*让我们定义一个函数如下:


公共函数掩码(ByRef inputStr As String,ByRef maskInStr As

String,ByRef maskOutStr As String,ByVal delimiter As Char)As String


*输入以下数值:


inputStr ="快速棕色狐狸%跳过狗。

maskInStr ="快速% 1狐狸%%跳过了%2。

maskOutStr =Yo %%妈妈的%1海狸闻起来像%2。


*该功能应该返回:


Mask =" Yo%momma'的棕色海狸闻起来像狗。


从这里你应该能够弄清楚这个功能应该如何工作。

请发布解决方案。祝你好运!


I''ve been wrestling with this programming problem for some time now, so I
thought I''d put it up for discussion. I''m trying to design a Mask function.
See if you can figure out a code for it...

The best way to explain this is to give an example of what the functions
should do.

* Let us a define a function as follows:

Public Function Mask(ByRef inputStr As String, ByRef maskInStr As
String, ByRef maskOutStr As String, ByVal delimiter As Char) As String

* Put in the following values:

inputStr = "The quick brown fox % jumped over the dog."
maskInStr = "The quick %1 fox %% jumped over the %2."
maskOutStr = "Yo %% momma''s %1 beaver smells like %2."

* The function should return:

Mask = "Yo % momma''s brown beaver smells like dog."

From this you should be able to figure out how the function should work.
Please, only post solutions that WORK. Good luck!

推荐答案



" exekutive" <前******* @ discussions.microsoft.com>写了

"exekutive" <ex*******@discussions.microsoft.com> wrote

我一直在努力解决这个编程问题,所以我想我会把它放在讨论中。我正在尝试设计一个Mask功能。
看看你是否可以找到它的代码...


< snipped for brievity>

请,只发布有效的解决方案。祝你好运!

I''ve been wrestling with this programming problem for some time now, so I
thought I''d put it up for discussion. I''m trying to design a Mask function.
See if you can figure out a code for it...
<snipped for brievity>
Please, only post solutions that WORK. Good luck!




任务是一个简单的替代。为什么你会期望别人做你的工作?

我会有兴趣看到谁会决定帮助除了简单地说明你

必须将它们分成几部分单词和使用字典替换所需的

部分....


???

LFS




" exekutive" <前******* @ discussions.microsoft.com>写了

"exekutive" <ex*******@discussions.microsoft.com> wrote

我一直在努力解决这个编程问题,所以我想我会把它放在讨论中。我正在尝试设计一个Mask功能。
看看你是否可以找到它的代码...


< snipped for brievity>

请,只发布有效的解决方案。祝你好运!

I''ve been wrestling with this programming problem for some time now, so I
thought I''d put it up for discussion. I''m trying to design a Mask function.
See if you can figure out a code for it...
<snipped for brievity>
Please, only post solutions that WORK. Good luck!




任务是一个简单的替代。为什么你会期望别人做你的工作?

我会有兴趣看到谁会决定帮助除了简单地说明你

必须将它们分成几部分单词和使用字典替换所需的

部分....


???

LFS


是的,理论上对我来说似乎也很简单,我很高兴你认为它很好。/ b $ b很容易。不,我不希望别人做我的工作。我仍在努力

想出这个,我也邀请其他人来解决这个问题,我希望他们能够接受他们的实际意见。


" Larry Serflaten"写道:
Yes it seemed quite simple to me in theory as well, and I''m glad you think it
is so easy. No, I don''t expect others to do my work. I am still trying to
figure this out and I invite others to engage in this problem as well and I
welcome their practical input.

"Larry Serflaten" wrote:

" exekutive" <前******* @ discussions.microsoft.com>写了

"exekutive" <ex*******@discussions.microsoft.com> wrote

我一直在努力解决这个编程问题,所以我想我会把它放在讨论中。我正在尝试设计一个Mask功能。
看看你是否可以找到它的代码......

I''ve been wrestling with this programming problem for some time now, so I
thought I''d put it up for discussion. I''m trying to design a Mask function.
See if you can figure out a code for it...



<为了简洁而剪掉>



<snipped for brievity>

请仅发布有效的解决方案。祝你好运!
Please, only post solutions that WORK. Good luck!



任务是一个简单的替代。为什么你会期望别人做你的工作?
我会有兴趣看到谁会决定帮助除了简单地说明你之后必须将它们分成单词并使用字典替换为所需的零件....

LFS



The task is a simple substitution. Why would you expect others to do your work?
I''ll be interested in seeing who will decide to help out beyond simply stating you
have to split them up into words and use a dictionary to subsitute in the needed
parts....

???
LFS



这篇关于具有挑战性的文本掩盖问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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