检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[1]营口职业技术学院电气电子工程系,辽宁营口115000
出 处:《长春师范学院学报(自然科学版)》2013年第6期23-26,共4页Journal of Changchun Teachers College
基 金:国家自然科学基金资助项目(11147132)
摘 要:在C语言教学中,数据类型其相应的数据范围的取值问题都是以补码进行讲解的。当超数据范围时,数据的真实值发生了变化,若对其进行计算,其理论依据仍是补码。但这种计算是很复杂的,也极易出错,对于初学的学生甚至教师都是一种考验。而对于任意一个给定的数,要很快计算出其结果,对于绝大多数师生似乎是一件"很难完成的任务"。本文先用补码进行理论推导,之后以大家最熟悉的十进制数进行计算,并最终推导出计算公式,使超数据范围条件下的任意数据的计算都能准确、轻松地实现。In the C language teaching, both data types and its con'esponding data range of values are explained by complementary code. When the data is beyond its range, the real value is changed "also. And if the data should be calculated, the theoretical basis is still complementary code theory. However, the calculation is intricate and error - prone, and it is a kind of test for the beginner learners and even for the teachers. It seems to be a "Mission Impossible" for most teachers and learners to immediately calculate the result of any data given at random. This article carries on the theoretical derivation with complementary data, and then with the most familiar decimal number calculation deduces the final calculation formula of arbitrary data in order to realize any data calculation accurately and easily when the data is beyond its range.
分 类 号:TP301.6[自动化与计算机技术—计算机系统结构]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:3.140.201.179