| 查看: 252 | 回复: 0 | ||
[求助]
PHP编程
|
|
大家好,我这里有一个PHP编程的题,是先将字符串:tomorrow_and_tomorrow_and_tomorrow转换成bwt_t: wwwdd__nnoooaatttmmmrrrrrrooo__$ooo;再转换成t_back: $worromot_dna_worromot_dna_worromot。这后一步的程序我不会写(也就是“function reverseBwt($bw){”这一步),求高手指点。谢谢各位了 程序: // Dr. Han’s implementation of the BWT // 20140408 $t = "tomorrow_and_tomorrow_and_tomorrow"; $bwt_t = bwt($t); $tBack = reverseBwt($bwt_t); print "t: $t\n"; print "bwt_t: $bwt_t\n"; print "t_back: $tBack\n"; print "Job done!\n"; function bwt($t){ …… } function reverseBwt($bw){ …… } 结果: ‐bash‐3.2$ php bwt.php t: tomorrow_and_tomorrow_and_tomorrow bwt_t: wwwdd__nnoooaatttmmmrrrrrrooo__$ooo t_back: $worromot_dna_worromot_dna_worromot Job done! ‐bash‐3.2$ |
» 猜你喜欢
论文撤稿了
已经有8人回复
博士申请
已经有7人回复
青B发送上会通知了吗
已经有8人回复
化学专业申博
已经有4人回复
评审有感
已经有27人回复
河北省自然科学基金
已经有9人回复
西安交大新媒学院副院长用撤稿论文结题
已经有5人回复
某211大学教师把个人教师官方主页改成:我跑了我跑了我跑了!官宣跑路!
已经有5人回复
26/27申博自荐
已经有9人回复
博士申请
已经有3人回复












回复此楼