学习日记(foundation-computer)
开始学c++了~
Chapter 1 :INTRODUCTION TO INFORMATION TECHNOLOGY
- Computer
-programmed device with a set of instructions to perform specific tasks and generate results at a very high speed.(带有一组指令的编程设备,可以执行特定任务并以极高的速度生成结果)
-功能
。解决复杂的问题
。处理数据
。存储和检索数据
。比人类更快,更高效地执行计算。
硬件 | 软件 |
构成计算机系统的物理元素的集合。 |
|
- 硬件组件
-Central processing unit (CPU)
。电脑的大脑
。越够力的CPU,电脑越快
。算术和逻辑运算在CPU内部执行。
-Main Memory or Random Access Memory (RAM)
。ordered sequence of cells-memory cells(each cell has a unique location in main memory, called the address of the cell.)
。Stores everything as sequences of 0s and 1s.(所以memory address 也是通过0和1来写的)
。必须先将所有程序加载到主存储器中,然后才能执行它们。
。当电脑关掉的时候,所有在主记忆会消失
-Secondary Storage(hard disks, flash drives,and CD-ROMs.)
。存储在主存储器中的信息必须保存在其他设备中以永久保存存储。
。因为当电脑关掉的时候,所有在主记忆会消失
。永久存储信息。
-Input(keyboard, mouse ,scanner,camera)
。将数据输入计算机的设备。
-output(monitor,printer)
。设备用于显示结果
- 软件
-app(word ,excel)
。进行一组协调的功能,任务或活动最终用户的利益。
-System software(file managers,display managers,text editor等)
。控制,整合和管理个人计算机的硬件组件系统。
- 数据怎样在电脑呈现的?
-数字信号以0和1的顺序表示信息
-最小的单位是bit
-越多bit越多资讯
- 概念
-电脑是属于数字化机械
-所有文字,符号,图片或者声音都会转换成binary form二进制形式
-数据表示:electronic circuit,magnetic media,optical device
- 为什么用binary?
-因为人类的语言太复杂了
-binary只有1跟0像开关一样
-小数点太多(之前的电脑开发)
-好处:
。数字计算机更可靠
。比模拟设备小
。消耗更少的能量
。数字集成电路易于制造
- Integer Representation
-Unsigned: zero, positive value only
。For n bit representation: range of value 0.. 2n-1
。Each integer value converted directly to binary equivalent
-Signed: negative, zero, positive value
。For n bit representation: range of value - 2n-1 ..+2n-1 -1
。Each integer will be converted to 2’s complement form
- 2’s Complement 2的补码
-方法1
。Find the 1’s complement (change 0 to 1 and 1 to 0) of the number and
then add 1
then add 1
。The 2’s complement of 101100 = 010011+ 1 = 010100
(简单来讲就是在后面加1)
-方法2
。Scan from right to left: leave all trailing zeroes unchanged
。keep the first 1; reverse the remaining 0s and 1s to the left
(简单讲就是第一个1保留,其他的0换1,1换0)
- 如何呈现已储存的memory
-不同的Processor 有不同方式储存数字
-他们是大过电脑的memory byte size
- Symbolic Representation using Coding用编码来呈现符号
-在计算中,每个字母,符号,数字都是通过一组bits来呈现的
。个人计算机上最常用的编码方案是七位美国信息交换标准代码(American Standard Code for Information Interchange-ASCII)
。1000001是由A来编码的
- 其他编码格式
-EBCDIC(被IBM用)(有256个字母)
-Unicode(有65,536个字母)
。创建代表各种字符,并不断扩展。
。它由英语以外的其他语言的字符组成
- Computer Basic Building Blocks
-logic gate是任何数字设备的最基本构建块系统
-3种最基础的logic gates
。NOT
。AND
。OR
评论
发表评论