在音节上划分单词 [英] Divide words on syllables
问题描述
大家好。我必须写一个编程,用于翻译一种语言的音节上的单词。 algoritm本身是ok.i从用户获取字符串将其转换为char字符串进行操作并将其放入具有不同大小的新字符串,但随后显示新字符串(并且它比字符串长度短)空格显示广场。我怎么解决这个问题?
一点提示:System.out.println()是你的朋友:坚持使用那些调试打印语句
无处不在的地方可能是错的,你很可能会在一个短暂的会话中找到这个bug。
亲切的问候,
Jos
我已经在使用这个函数。
i我已经在使用这个功能。
如果你没有发布一些相关的代码片段,我们就不能再帮你了。
今天我的水晶球在它的充电器中所以我不能做出心灵猜测;-)
亲切的问候,
Jos
hi everyone. i have to write a prog that divedes words on syllables for one language. the algoritm itself is ok.i take from user the string convert it to char string make the operation and put it to new string with difined size,but then the new string is displayed (and it is shorter than strings length) the empty spaces show squares. how can i solve this problem?
hi everyone. i have to write a prog that divedes words on syllables for one language. the algoritm itself is ok.i take from user the string convert it to char string make the operation and put it to new string with difined size,but then the new string is displayed (and it is shorter than strings length) the empty spaces show squares. how can i solve this problem?A little tip: System.out.println() is your friend: stick in those debug print statements
everywhere where you expect something could be wrong, You''ll most likely
hunt down that bug in one short session.
kind regards,
Jos
i am already using this function.
i am already using this function.We can''t help you any further if you don''t post some relevant snippets of code.
Today my crystal ball is in its charger so I can''t make psychic guesses ;-)
kind regards,
Jos
这篇关于在音节上划分单词的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!