中興電機 程式研究小組

程式研究小組
 
首頁歡迎頁日曆常見問題搜尋會員列表會員群組會員註冊登入

分享 | 
 

 研討小組第一份題目

上一篇主題 下一篇主題 向下 
發表人內容
hergan882002



文章數: 2
注冊日期: 2008-10-18

發表主題: 研討小組第一份題目   周二 10月 28, 2008 9:52 am

抱歉給大家久等了,
希望我還來得及,不論如何這禮拜就要開始寫題目囉!
下禮拜驗收,還有就是使用visual c 2008 express 這樣大家debug才會一致。


參考書目 C how to program 4th

第三章 第46題

A company wants to transmit data over the telephone,but they are concernd that their phones may be tapped.All of their data is transmitted as four-digit integers.They have asked youto write a program that will encypt their data so that it may be transmitted more securely. Your program should read afour-digit integer and encrypt it as follows : Replace each digit by the remainder after (the sum of that digit plus 7)is divided by 10.Then swap the first digit with the third,and swap the second digit with the fourth.Then print the encrypted integer.Write a separate program that inputs an encrypted four-digit integer and decrypts it to form the original number.

就先寫這題吧。

看不懂題義問我。
回頂端 向下
檢視會員個人資料
 

研討小組第一份題目

上一篇主題 下一篇主題 回頂端 
1頁(共1頁)

這個論壇的權限:無法 在這個版面回復文章
中興電機 程式研究小組 :: 您的第一個分類 :: 中興電機 程式研討小組交流版-