|簡體中文

比思論壇

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



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

[書籍] C++ By Example(四) Structures and File Input Output (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-6 19:00:04
    Using structures, you have the ability to group data and work with the grouped data as a whole. Business data processing uses the concept of structures in almost every program. Being able to manipulate several variables as a single group makes your programs easier to manage. This chapter introduces the following concepts: ♦ Structure definitions ♦ Initializing structures ♦ The dot operator (. ) ♦ Structure assignment ♦ Nested structures This chapter is one of the last in the book to present new concepts. The remainder of the book builds on the structure concepts you learn in this chapter.
    A structure is a collection of one or more variable types. As you know, each element in an array must be the same data type, and you must refer to the entire array by its name. Each element (called a member) in a structure can be a different data type.

    Suppose you wanted to keep track of your CD music collection.You might want to track the following pieces of information about
    each CD:
    Title
    Artist
    Number of songs
    Cost
    Date purchased
    There would be five members in this CD structure.


    下载地址:

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

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


    1萬

    主題

    0

    好友

    9萬

    積分

    比思貴賓

    Rank: 8Rank: 8

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

    [LV.Master]伴壇終老

     成長值: 137330

    推廣值
    0
    貢獻值
    17777
    金錢
    1082
    威望
    95358
    主題
    11213

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

    沙發
    發表於 2016-5-6 19:25:06

    回帖獎勵 +5

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

    手機版| 廣告聯繫

    GMT+8, 2024-5-16 17:57 , Processed in 0.019482 second(s), 26 queries , Gzip On.

    Powered by Discuz! X2.5

    © 2001-2012 Comsenz Inc.

    回頂部