中興電機 程式研究小組

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

搜尋
 
 

結果按:
 
Rechercher 進階搜尋
最新主題
» 赫更兄的中文化題目
周三 10月 29, 2008 12:22 am 由 sawyer

» 研討小組第一份題目
周二 10月 28, 2008 9:52 am 由 hergan882002

» 「程研小組」 研討會 記錄
周日 10月 19, 2008 4:48 pm 由 雪願

» 小組成員預計目標
周六 10月 18, 2008 11:58 am 由 hergan882002

合作伙伴
免費論壇

免费论坛

研討小組第一份題目
周二 10月 28, 2008 9:52 am 由 hergan882002
抱歉給大家久等了,
希望我還來得及,不論如何這禮拜就要開始寫題目囉!
下禮拜驗收,還有就是使用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.

就先寫這題吧。

看不懂題義問我。

評論: 0
統計
目前總共有 4 位註冊會員
最新註冊的會員: WeIwEi.

目前總共發表了 4 篇文章 在4個主題中
版面
查看誰在線上
目前總共有 1 位使用者在線上 :: 0 位會員, 0 位隱形及 1 位訪客

沒有

最高線上人數記錄為 7 人 [ 記錄時間 :: 周四 7月 08, 2010 3:48 am ]