[试题] 105上 丁培毅 计算机程式设计 第一次小考

楼主: xavier13540 (柊 四千)   2016-11-02 22:39:32
课程名称︰计算机程式设计
课程性质︰数学系大一必修
课程教师︰丁培毅
开课学院:理学院
开课系所︰数学系
考试日期(年月日)︰2016/10/31
考试时限(分钟):15
试题 :
This is a 15-minute quiz.
Openbook: you can examine whatever printed or handwritten materials that belong
to yourself. No computer, smart phone, or network access allowed.
请写一个while循环。
1) 运用scanf()函数由键盘"一个字符一个字符"读取最多十位数的五进位数字,例如
1240103341。
2) 检查读入的字符是否是允许的 (i.e. 0-4),直到不合法字符出现。
3) 请将读入的字符在读入的过程中逐步转换为 int 型态的整数(例如 341 → 96)。
/*
注:
1. 一上课老师就宣布下一节课小考
据说是因为有学生太吵让老师不开心@@
2. 手写code
*/
作者: xitian81 (xitian81)   2015-04-30 20:56:00
其实他们都是男的 不信你摸摸看
作者: defendant (被告)   2015-04-30 21:00:00
薛丁格的gg

Links booklink

Contact Us: admin [ a t ] ucptt.com