———
所在版块:社会百科 发贴时间:2003-09-14 17:20

用户信息
复制本帖HTML代码
高亮: 今天贴 X 昨天贴 X 前天贴 X 
write a recursive version of function which returns the position of the first appearance of a specified digit in a positive number.count from right and starts from 1.
i.e:input 1234 and 3,output 2,input 123241 and 2,output 3.
以上都不难,可以实现,但是他又规定如果那个digit不在那个数中的话,输出0,例如:input 234 and 1,output 0.这可把我难倒了。
注意:该程序要用recursive version写。
请高手指教,很急,谢谢!
.
欢迎来到华新中文网,踊跃发帖是支持我们的最好方法!

Put your OWN COOL signature here!
 相关帖子 我要回复↙ ↗回到正文
——— 春兰特派员   (408 bytes , 404reads )
My C source code, have debugged in TC jianxing   (463 bytes , 313reads )
我自己的算法 春兰特派员   (186 bytes , 157reads )
here 吴永铮   (146 bytes , 194reads )
果然高手,虽然我后来做出来了! 春兰特派员   (34 bytes , 148reads )
"return tmp ? (tmp+1) ? 0;" 这个什么意思?? 香陵居士   (27 bytes , 191reads )
typo. another typo is 吴永铮   (59 bytes , 177reads )
标题:———C语言难题一道,急!——— 春兰特派员   (0 bytes , 175reads )