四、撰寫一個函數(function)接受一個字串,將該字串轉換成加三碼字串。加三碼的 用如下:A→D, B→E, …, W→Z, X→A, Y→B, Z→C。因此一字串CAMPUSSTYLE 的加三碼字串為FDPSXVVWBOH。 補習班解答如下 01 public String AddThreeCodes(String inputstring) 02 { int i, j; 03 char c; 04 String outputstring = " "; 05 for (i = 0; i ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 114.38.137.215
This entry passed through the Full-Text RSS service — if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers. Five Filters recommends: 'You Say What You Like, Because They Like What You Say' - http://www.medialens.org/index.php/alerts/alert-archive/alerts-2013/731-you-say-what-you-like-because-they-like-what-you-say.html
You are receiving this email because you subscribed to this feed at blogtrottr.com.
留言列表