QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 1274|回复: 0
打印 上一主题 下一主题

The foreknowledges for C and C|++ beginner

[复制链接]
字体大小: 正常 放大

937

主题

117

听众

3万

积分

升级  0%

  • TA的每日心情

    2020-10-25 11:55
  • 签到天数: 264 天

    [LV.8]以坛为家I

    自我介绍
    内蒙古大学计算机学院

    社区QQ达人 金点子奖 助人为乐奖 风雨历程奖

    群组2013年数学建模国赛备

    跳转到指定楼层
    1#
    发表于 2013-7-26 13:41 |只看该作者 |倒序浏览
    |招呼Ta 关注Ta
           It is a very well-known fact that computers can manage internally only 0s (zeros) and 1s (ones). This is true, and by means of sequences of 0s and 1s the computer can express any numerical value as its binary translation, which is a very simple mathematical operation (as explained in the paper numerical bases).5 q* @% `; [8 z2 K! E# ~4 p

    6 i  l8 ~: d2 K$ W8 g& m& W       Nevertheless, there is no such evident way to represent letters and other non-numeric characters with 0s and 1s. Therefore, in order to do that, computers use ASCII tables, which are tables or lists that contain all the letters in the roman alphabet plus some additional characters. In these tables each character is always represented by the same order number. For example, the ASCII code for the capital letter "A" is always represented by the order number 65, which is easily representable using 0s and 1s in binary: 65 expressed as a binary number is 1000001.
    4 n# g: _1 H5 B# W# w1 a& ?% ^5 D# W+ a
          The standard ASCII table defines 128 character codes (from 0 to 127), of which, the first 32 are control codes (non-printable), and the remaining 96 character codes are representable characters: + I/ q! }, j4 x1 D
    5 v1 z0 E* ]9 t& e7 I7 x
    (}F81WM{IBKU]0EDLM]$`BC.jpg ) t8 m5 i1 p' o% X

      q/ l/ Q4 f. M0 g* This panel is organized to be easily read in hexadecimal: row numbers represent the first digit and the column numbers represent the second one. For example, the "A" character is located at the 4th row and the 1st column, for that it would be represented in hexadecimal as 0x41 (65).
    7 o9 _2 \. V. b" b! ~! v. V; m/ G- W! X3 a
    Because most systems nowadays work with 8bit bytes, which can represent 256 different values, in addition to the 128 standard ASCII codes there are other 128 that are known as extended ASCII, which are platform- and locale-dependent. So there is more than one extended ASCII character set.* ~) h7 g4 v4 p- a
    6 i# v# |! L! A9 c
    The two most used extended ASCII character sets are the one known as OEM, that comes from the default character set incorporated by default in the IBM-PC and the other is the ANSI extend ASCII which is used by most recent operating systems.
    9 h& Q  a* o3 K2 h  b9 f+ F% q8 r2 C
    * f$ t- a2 ~9 r5 {, U# TThe first of them, the OEM character set, is the one used by the hardware of the immense majority of PC compatible machines, and was also used under the old DOS system. It includes some foreign signs, some marked characters and pieces to represent panels.
    3 q6 Y" \/ t9 Z5 `  t. K0 m' T; g" x; d9 c) M9 h7 D' a& L
    OME.jpg
    ; y* P& r3 Z! j1 t1 Q( q* ]% @/ ~
    $ s8 p2 e, i* a# U* D3 JThe ANSI character set is a standard that many systems incorporate, like Windows, some UNIX platforms and many standalone applications. It includes many more local symbols and marked letters so that it can be used with no need of being redefined in many more languages: , ?8 c7 i% m( {7 v
    $ G. v  u  ^3 S; w; W
    Z$U[S~4Y4P}HDDXL%%{`A.jpg $ e6 M! F; ?4 n* R- Q6 x1 r8 J
    , h* s% B8 Q* ?  M" G7 d

    ) n4 i* O2 o& y) `
    zan
    转播转播0 分享淘帖0 分享分享0 收藏收藏0 支持支持0 反对反对0 微信微信
    您需要登录后才可以回帖 登录 | 注册地址

    qq
    收缩
    • 电话咨询

    • 04714969085
    fastpost

    关于我们| 联系我们| 诚征英才| 对外合作| 产品服务| QQ

    手机版|Archiver| |繁體中文 手机客户端  

    蒙公网安备 15010502000194号

    Powered by Discuz! X2.5   © 2001-2013 数学建模网-数学中国 ( 蒙ICP备14002410号-3 蒙BBS备-0002号 )     论坛法律顾问:王兆丰

    GMT+8, 2024-4-28 10:01 , Processed in 0.450642 second(s), 53 queries .

    回顶部