█ _ 0 حصريا كتاب ❞ ++A Complete Guide to Programming in C ❝ 2024 C: A Programming C++ Ulla Kirch Prinz Peter Prinz
المرجع الشامل فى ال ++VC This book was written for readers interested learning the C++ programming language from scratch, and both novice advanced programmers wishing enhance their knowledge of It our goal begin ning design this text with capabilities serving dual markets, as a book students holistic reference manual professionals The language definition is based on A merican N ational S tan dards I nstitute ANSI Standard X3J16 This standard also complies ISO norm 14882, which ratified by I nternational S tandardization O rgani zation 1998 The programming thus platform independent in main majority compilers providing ANSI support New elements language, such exception handling templates, are supported most major Visit Jones Bartlett web site at www jbpub com listing available The chapters in are organized guide reader elemen tary concepts professional software development, depth coverage all elements en route order these elements discussed reflects helping create useful programs at every step way preface This page intentionally left blank xi Chapter 1 Fundamentals 1 Development Properties 2 Object Oriented 4 Developing Program 6 A Beginner’s 8 Structure Simple Programs 10 Exercises 12 Solutions 14 Chapter 2 Fundamental Types, Constants, Variables 15 Fundamental Types 16 Constants 22 Escape Sequences 26 Names 28 Variables 30 The Keywords const volatile 32 Exercises 34 Solutions 36 contents Chapter 3 Using Functions Classes 39 Declaring 40 Function Calls 42 Type void 44 Header Files 46 Standard Header 48 Using Standard 50 Exercises 52 Solutions 54 Chapter 4 Input Output Streams 57 Streams 58 Formatting Manipulators 60 Formatted Integers 62 Formatted Floating Point Numbers 64 Output Fields 66 Output Characters, Strings, Boolean Values 68 Formatted Input 70 Formatted 72 Unformatted 74 Exercises 76 Solutions 78 Chapter 5 Operators Fundamental 81 Binary Arithmetic Operators 82 Unary 84 Assignments 86 Relational 88 Logical 90 Exercises 92 Solutions 94 Chapter 6 Control Flow 95 The while Statement 96 The 98 The do 102 Selections if else 104 Else Chains 106 Conditional Expressions 108 Selecting switch 110 Jumps break, continue, goto 112 Exercises 114 Solutions 116 xii ■ CONTENTS Chapter 7 Symbolic Constants Macros 119 Macros 120 Macros Parameters 122 Working #define Directive 124 Conditional Inclusion 126 Standard Character Manipulation 128 Redirecting 130 Exercises 132 Solutions 134 Chapter 8 Converting 139 Implicit Type Conversions 140 Performing Usual 142 Implicit Assignments 144 More 146 Exercises 148 Solutions 150 Chapter 9 The Class string 153 Defining Assigning Strings 154 Concatenating 156 Comparing 158 Inserting Erasing 160 Searching Replacing 162 Accessing Characters 164 Exercises 166 Solutions 168 Chapter 10 Functions 171 Significance 172 Defining 174 Return Value 176 Passing Arguments 178 Inline 180 Default 182 Overloading 184 Recursive 186 Exercises 188 Solutions 191 Chapter 11 Storage Namespaces 197 Storage Objects 198 The Storage extern 200 CONTENTS ■ xiii Members Derived 504 Member Access 506 Redefining Members 508 Constructing Destroying 510 Objects 512 Protected 514 Exercises 516 Solutions 520 Chapter 24 Type Conversion Hierarchies 529 Converting Base 530 Type 532 Converting References Pointers 534 Explicit 536 Exercises 538 Solutions 540 Chapter 25 Polymorphism 543 Concept Polymorphism 544 Virtual Methods 546 Destroying Dynamically Allocated 548 Virtual Method Table 550 Dynamic Casts 552 Exercises 554 Solutions 558 Chapter 26 Abstract 565 Pure Virtual 566 Abstract Concrete 568 Pointers Abstract 570 Virtual Assignment 572 Application: Inhomogeneous Lists 574 Implementing an List 576 Exercises 578 Solutions 580 Chapter 27 Multiple Inheritance 587 Multiply 588 Multiple Indirect 590 Virtual 592 Constructor 594 Initializing 596 Exercises 598 Solutions 602 CONTENTS ■ xvii Chapter 28 Exception Handling 607 Traditional Error 608 Exception 610 Exception Handlers 612 Throwing Catching Exceptions 614 Nesting Exception 616 Defining Your Own 618 Standard 620 Exercises 622 Solutions 626 Chapter 29 More About 637 Opening File Random 638 Positioning 640 File State 644 Exception 646 Persistence Polymorphic 648 Application: Index 652 Implementing 654 Exercises 656 Solutions 660 Chapter 30 More 681 Pointer 682 Variable Number 684 Pointers 688 Complex Declarations 690 Defining Typenames 692 Application: Dynamic Matrices 694 Exercises 696 Solutions 698 Chapter 31 Manipulating Bits 705 Bitwise 706 Bitwise Shift 708 Bit Masks 710 Using Bit 712 Bit 714 Exercises 716 Solutions 718 Chapter 32 Templates 721 Function Templates 722 Defining 724 xviii CONTENTS Template Instantiation 726 Template 728 Template 730 Specialization 732 Default 734 Explicit 736 Exercises 738 Solutions 742 Chapter 33 Containers 749 Container 750 Sequences 752 Iterators 754 Declaring 756 Inserting 758 Accessing 760 Length Capacity 762 Deleting 764 List Operations 766 Associative Containers 768 Sets Multisets 770 Maps Multimaps 772 Bitsets 774 Exercise 778 Solution 780 Appendix 783 Binary 784 Preprocessor Directives 787 Pre Defined 792 Binding 793 Operators Overview 795 Operator Precedence 797 ASCII Code 798 Screen Control 800 Literature 801 Index 803 CONTENTS كتب سي بلس مجاناً PDF اونلاين سي++ (تنطق: بلس) (بالإنجليزية: ++C) هي لغة برمجة كائنية متعددة أنماط البرمجة مصرفة سكونية الأنماط وتضم العديد من ميزات لغات عالية المستوى ومنخفضة بدأ تطوير هذه اللغة امتدادًا للغة تحت اسم (سي مع الأصناف) قبل بيارن ستروستروب مختبرات بل عام 1979 وتم إضافة الميزات الأخرى لاحقاً وتغير الاسم 1983 ليصبح باب الدعابة عبر استخدام معامل الزيادة لجانب تأكيداً أنها «التالي سي» تعتبر إحدى اللغات الأكثر شيوعاً وقد استخدمت نطاق واسع بناء أنظمة التشغيل والتعامل البنية الصلبة للحاسوب ابتداءً الأنظمة البرمجية وبرامج المستخدم مروراً بمشغلات الأجهزة والأنظمة المضمنة وانتهاءً بالخوادم الأداء التسلية كالألعاب الفيديوية نظراً لقدرة تصريفها إلى كود تجميع شديد الفعالية أحد أكثر استخدامات إثارةً للإعجاب حسب رأي هو كتابة قسم كبير القيادة الأوتوماتيكية للعربات التي تجولت سطح المريخ (مارس روفر)