|簡體中文

比思論壇

 找回密碼
 按這成為會員
搜索



查看: 516|回復: 1
打印 上一主題 下一主題

[書籍] C++ By Example(五) Arrays and pointers (Greg Perry英文版)

[複製鏈接]

6012

主題

7

好友

1萬

積分

教授

Rank: 8Rank: 8

  • TA的每日心情
    擦汗
    2019-10-20 13:21
  • 簽到天數: 812 天

    [LV.10]以壇為家III

    推廣值
    0
    貢獻值
    8954
    金錢
    230
    威望
    17727
    主題
    6012
    樓主
    發表於 2016-5-7 10:16:11
    This chapter discusses different types of arrays. You are already familiar with character arrays, which are the only method for storing character strings in the C++ language. A character array isn’t the only kind of array you can use, however. There is an array for every data type in C++. By learning how to process arrays, you greatly improve the power and efficiency of your programs. This chapter introduces ♦ Array basics of names, data types, and subscripts ♦ Initializing an array at declaration time ♦ Initializing an array during program execution ♦ Selecting elements from arrays The sample programs in these next few chapters are the most advanced that you have seen in this book. Arrays are not difficult to use, but their power makes them well-suited to more advanced programming.
    Although you have seen arrays used as character strings, you still must have a review of arrays in general. An array is a list of more than one variable having the same name. Not all lists of variables are arrays. The following list of four variables, for example, does not qualify as an array.

    下载地址:

    http://edu.ctfile.com/info/R1r67285

    http://www.yimuhe.com/file-3047260.html

    1萬

    主題

    0

    好友

    9萬

    積分

    教授

    Rank: 8Rank: 8

  • TA的每日心情
    開心
    2024-5-1 06:59
  • 簽到天數: 4482 天

    [LV.Master]伴壇終老

    已拋錨 成長值: 129770

    推廣值
    0
    貢獻值
    17777
    金錢
    1098
    威望
    95358
    主題
    11212

    回文勇士 中學生 高中生 簽到勳章 簽到達人 大學生 文明人 教授 愛因斯坦 伴壇終老 文章勇士 附件高人 附件達人 文章達人

    沙發
    發表於 2016-5-7 10:32:53

    回帖獎勵 +5

    我只会用,不会编
    重要聲明:本論壇是以即時上載留言的方式運作,比思論壇對所有留言的真實性、完整性及立場等,不負任何法律責任。而一切留言之言論只代表留言者個人意見,並非本網站之立場,讀者及用戶不應信賴內容,並應自行判斷內容之真實性。於有關情形下,讀者及用戶應尋求專業意見(如涉及醫療、法律或投資等問題)。 由於本論壇受到「即時上載留言」運作方式所規限,故不能完全監察所有留言,若讀者及用戶發現有留言出現問題,請聯絡我們比思論壇有權刪除任何留言及拒絕任何人士上載留言 (刪除前或不會作事先警告及通知 ),同時亦有不刪除留言的權利,如有任何爭議,管理員擁有最終的詮釋權。用戶切勿撰寫粗言穢語、誹謗、渲染色情暴力或人身攻擊的言論,敬請自律。本網站保留一切法律權利。

    手機版| 廣告聯繫

    GMT+8, 2024-11-17 04:46 , Processed in 0.014824 second(s), 16 queries , Gzip On, Memcache On.

    Powered by Discuz! X2.5

    © 2001-2012 Comsenz Inc.

    回頂部