C + + Programming Bingshu

Source: Internet
Author: User
Tags arithmetic class definition shallow copy administrator password

:http://download.csdn.net/detail/laoge/8683627  "C + + programming Bingshu" Basic information Yonggang Series name: Programmer's Sutra: Electronic Industry publishing house isbn:9787121207730:2013-8-26 Published: September 2013 format: 16 Open: 564 Edition: 1-1 Category: Computer > Software and Programming > C + + more about "C + + programming Bingshu" Introduction to the computer book "C + + programming Bingshu", a comprehensive and systematic introduction to Visual C + + development technology. This book provides a number of examples for the reader to drill. This book covers a wide range, from basic operations to advanced technology and core management, to project development, involving almost all the important knowledge of C + + development.   In addition, in order to help readers to better study the contents of the book, the sample source code in the book is included in the book Book CD. The book is divided into 17 chapters. The main content is getting started with C + +, installing and Configuring Visual C + + 6.0, variables and basic data types, operators and expressions, program control structures, arrays, functions, advanced Applications for functions, compilation preprocessing, pointers, construction data types, classes, initialization and assignment of classes, and destructors, templates,   The object-oriented programming, Personnel management system, song management system. The C + + programming Bingshu is suitable for all people who want to fully learn C + + development technology and is also suitable for use by engineering technicians who develop with Visual C + +. For people who often use Visual C + + for development, it is a rare desk-necessary reference. Directory "C + + programming Bingshu", 1th Overview: Introduction to C + + 11.1 C + + Overview 21.1.1 C + + history 21.1.2 C + + and object-oriented 21.1.3 program design c++31.2 from C to 41.2.1 structural programming 41.2.2 Comparison of programming methods for object-oriented programming 51.2.3 61.3 C + + development environment--visual C + + 6.071.3.1 workspace 81.3.2 edit Area 91.3.3 Output Window 91.3.4 menu bar, toolbars, and status bar 101.4 C + + SOURCE program composition element 161.4.1 basic composition 161.4.2 basic symbol 171.4.3 identifier 171.4.4 reserved word 18.1.4.5 delimiter 181.5 description of file type in Visual C + + 6.0 project 181.6 Summary 191.7 Exercise 20 2nd Chapter Equipment Pickup : Install, configure Visual C + + 6.0212.1 to install Visual C + + 6.0222.1 in Windows 7.1 System Requirements 222.1.2 installation of Visual C + + 6.0 and installshield222.1.3 in Windows 7 thoroughly resolves Windows 7 compatibility issues with Visual C + + 6.0 Configuring Visual C + + 332.2 configuration 72.2.1 environment settings (Environment settings) 372.2.2 work area settings (Workspace settings) 392.2.3 Project settings (Project settings) 412.2.4 Shortcut keys (shortcut-key) 432.3 the first C + + program-helloworld442.4 Summary 502.5 Exercise 51 The 3rd chapter: variables and basic data Types 523.1 constants 533.1.1 literal constants 533.1.2 Symbolic Constants (# Define) application of 563.1.4 constants of 553.1.3 constant variables 573.2 variable 623.2.1 declaring variable 623.2.2 variable naming rules 633.2.3 variable storage time and scope 653.2.4 variable application 693.3 basic data type 703.3.1 Integer 713.3.2 character type 733.3.3 float 753.3.4 boolean 763.4 type conversion 783.4.1 implicit conversion 783.4.2 Explicit conversion 793.4.3 4 data type conversion operators for C + + 813.5 knowledge Deepening 843.6 summary 883.7 Exercise 88 4th Pile Step: operator and expression 904.1 operator 914.1.1 arithmetic operator 914.1.2 assignment operator 944.1.3 relational operator 954.1.4 logical operator 974.1.5 conditional operator 984.1.6 comma operator 1004.1.7 bitwise operator 1004.1.8 sizeof operator 1064.1.9 operator precedence 1074.2 expression 1094.2.1 arithmetic expression 1094.2.2 relational expression 1104.2.3 logical expression 1114.2.4 conditional expression 1124.2.5 Assignment expression 1134.2.6 comma expression 1154.3 statement 1154.3.1 space in statement 1164.3.2 empty statement 1174.3.3 declaration Statement 1174.3.4 Assignment Statement 1174.4 Summary 1184.5 Exercise 118 5th Chapter Initial support Internal force: Program control structure 1215.1 sequence structure 1225.1.1 expression statement 1225.1.2 input statement 1235.1.3 OUTPUT Statement 1245.1.4 format Controller 1255.1.5 application Example 1295.2 Select structure 1305.2.1 if statement 1305.2.2 if?else statement 1315.2.3 multiple IF...ELSE statement 1335.2.4 switch Statement 1355.2.5 application Example 1385.3 looping structure 1405.3.1 For statement 1405.3.2 while statement 1415.3.3 do?while statement 1435.3.4 multi-loop 1445.3.5 Application Example 1455.4 turn statement 1475.5 summary 1485.6 Exercise 149 Chapter 6th Small Foundation: Array 1516.1 Array overview 1526.1.1 basic concept of an array 1526.1.2 one-dimensional array 1536.1.3 two-dimensional array 1536.2 declaration and initialization of an array 1546.2.1 declaration one-dimensional array 1546.2.2 initialize one-dimensional array 1546.2.3 declaration two-dimensional array 1566.2.4 Initializing a two-dimensional array 1566.3 referencing an array element 1586.3.1 referencing a one-dimensional array element 1586.3.2 referencing a two-dimensional array element 1616.3.3 application example 1626.4 string 1636.4.1 character array 1636.4.2 string 1646.4.3 The difference between a character array and a string 1666.5 string handler function 1676.5.1 strcmp () function-string comparison 1676.5.2 strcpy () function-string copy 1686.5.3 strcat () function-string connection 1696.5.4 strlen () function-calculates the length of the string 1716.5.5 gets () and puts () function-string input/output 1726.6 array synthesis Application 1736.7 summary 1766.8 Exercise 177 7th One trick: function 1807.1 Function Overview 1817.1.1 Basic concept of the function 1817.1.2 functions of the classification of the 1827.1.3 function of the Declaration and definition of the function 1837.2.1 declaration function 1837.2.2 Definition function 1857.2.3 header file and implementation file separation 1867.3 function parameter pass 1897.3.1 Parameter and argument 1897.3.2 value pass 1907.3.3 address pass 1927.4 function call 1937.4.1 function calling procedure 1937.4.2 parameterless function call 1947.4.3 parameter function call 1957.4.4 default parameter value function call 1977.4.5 Nested call 1997.5 recursive 2017.5.1 direct recursion 2017.5.2 indirect recursive 2037.6 main () function 2057.6.1 main () function with no arguments 2057.6.2Main () function with parameters 2067.7 inline function 2087.8 function Synthesis Application 2097.9 summary 2127.10 Exercise 212 8th: Advanced application of Functions 2158.1 array as function parameter 2168.1.1 pass one-dimensional array parameter 2168.1.2 Pass a multidimensional array parameter 2178.2 find function implementation 2198.2.1 Order lookup function Implementation 2198.2.2 Binary lookup function Implementation 2218.3 sort function Implementation 2238.3.1 bubble sort function Realization 2238.3.2 quick sort function Realization 2258.4 function template 2278.4.1 Introducing function template 2278.4.2 defining function template 2288.4.3 instantiation function template 2298.4.4 Application example 2318.5 function overloading 2328.5.1 function overloading Overview 2328.5.2 parameter types different function overloads 2338.5.3 function overloading with different number of arguments 2358.5.4 application example 2368.6 function Advanced Application 2388.7 Summary 2408.8 Exercise 240 9th exclusion of distractions: compilation preprocessing 2429.1 preprocessing commands 2439.2 macros 2439.2.1 macros Overview 2439.2.2 Macro definition with no parameters 2449.2.3 Cancel macro 2459.2.4 macro nested 2479.2.5 macro definition 2489.2.6 inline function 2539.2.7 macro differs from function 2549.3 file contains 2569.3.1 #include命令2569.3.2 Reasonable use of the file contains 2579.4 pieces compiled 2589.4.1 #ifdef形式2599.4.2 #ifndef形式2609.4.3 #if形式2619.5 other commands 2629.5.1 #error命令2629.5.2 # Line Command 2639.6 Summary 2639.7 Exercise 264 10th Chapter Swim Edge Battlefield: pointer 26710.1 pointer Overview 26810.1.1 pointer is what 26810.1.2 defines the pointer 26910.1.3 pointer initialization 26910.2 pointer operation 27110.2.1 Take the address and value operation 27110.2.2 the arithmetic operation of the pointer 27310.2.3 the pointer to the assignment of the 27510.2.4 pointer 27610.2.5 the void pointer and the const pointer 27710.3 pointer to the array 27810.3.1 Methods for accessing array elements 27910.3.2 multi-dimensional array element access 28110.3.3 array pointer and pointer array 28210.4 pointer to function 28410.4.1 pointer as function parameter 28410.4.2 pointer typeNumber 28610.4.3 function pointer 28710.5 Pointer to string 28910.6 two level pointer 29110.7 summary 29210.8 Exercise 292 11th Chapter: Construction Data type 29411.1 structure body 29511.1.1 structure Overview 29511.1.2 struct type declaration 29611.1.3 define struct type variable 29711.1.4 initialize struct variable 29911.1.5 reference struct member variable 30111.1.6 struct body as function parameter 30311.2 shared body 30411.2.1 Common body Type declaration 30411.2.2 defines a common body type variable 30511.2.3 reference a pooled member variable 30611.3 enumeration 30811.3.1 defines an enumeration type 30811.3.2 defines an enumeration type variable 31011.3.3 a reference enumeration type variable 31111.4 Type redefinition typedef31211.5 bit field 31511.5.1 Defining bit field variables 31511.5.2 using bit fields 31611.6 Summary 31811.7 exercise 318 12th discipline Door First Touch: Class 32012.1 class definition 32112.1.1 Data members 32112.1.2 member functions 32212.1.3 member access 32312.1.4 friend 32412.1.5 class declaration and class definition 32612.2 class and Object 32612.3 class member function 32812.3.1 inline member function 32812.3.2 The const object and the const member function 33012.4 imply the this pointer 33212.5 static class member 33512.5.1 static data member 33512.5.2 static member function 33612.6 pointer to the class member 33712.6.1 Pointer to data member 33712.6.2 pointer to member function 33812.7 Local class 34012.8 nested class 34012.9 Summary 34212.10 Exercise 342 13th Chapter Small Achievements: Initialization of classes, assignment and initialization of 34413.1 classes 34513.2 The constructor of the class 34613.2.1 the default constructor 34713.2.2 restrict object creation 35113.2.3 copy constructor 35213.2.4 deep copy and shallow copy 35613.2.5 constructor call sequence 35813.3 class of Destruction 35913.3.1 General destructor 35913.3.2 Virtual destructor 36113.4 Summary 36413.5 Exercise 364 14th to one enemy Hundred: template 36814.1 template concept 36914.2 function template and template function 37014.2.1 function template 37014.2.2 templatefunction 37214.3 class template 37514.3.1 class template 37514.3.2 template class 37714.3.3 class template instantiation 37914.3. Class template member function 4. Friend declaration in 38214.3 class template 5 Summary 38414.4 Exercise 387 15th Chapter One: Object-oriented Programming 39215.1 what is Object-oriented programming 39315.1.1 the advantages of object-oriented programming 39315.1.2 the basic concept of object-oriented programming 39515.2 data abstraction and encapsulation 39915.2.1 The abstraction of a class 40015.2.2 class 40015.3 derives from the concept of inheriting 40215.3.1 derived classes 40215.3.2 the construction and destruction of derived classes 40515.3.3 the access rights of base class members in derived classes 40915.3.4 Multiple inheritance and inheritance chain 41115.3.52 Semantic Problems 41515.4 polymorphism 42015.4.1 concept 42015.4.2 function overloading 42115.4.3 operator overloading 42215.4.4 virtual function 42615.5 Summary 43315.6 Exercise 434 16th Chapter Combat improvement: Personnel Management System 44016.1 Development background 44116.2 system Analysis 44116.2.1 requirements Analysis 44116.2.2 project personnel allocation 44116.3 system design 44216.3.1 system target 44216.3.2 system module structure 44216.3.3 Development environment and operating environment 44416.3.4 system preview 44416.4 Database design 44716.4.1 Database Analysis 44716.4.2 management system e-r diagram 44816.4.3 database, table design 44916.4.4 data table Diagram 45216.5 Staff module Design 45316.5.1 Staff module function Analysis 45316.5.2 Staff Module Technical Analysis 45316.5.3 employee added implementation 45416.5.4 Employee Deletion implementation 45916.5.5 Employee Modification Implementation 46316.5.6 The realization of staff inquiry 46416.6 Attendance module Design 46516.6.1 attendance function Analysis 46516.6.2 Attendance Analysis 46516.6.3 The realization of attendance management 46616.6.4 attendance statistics, query and deletion 46916.7 salary module design 47316.7.1 Salary Module Function Analysis 47316.7.2 salary Module Technical Analysis 47316.7.3 The realization of wage calculation 47316.7.4 the setting of basic information of Wages 47516.7.5 Payroll statistics Query 47916.8 System module Design 48316.8.1 system module function pointsAnalysis of 48316.8.2 system module Technology 48316.8.3 User-added implementation 48416.8.4 user Logoff implementation 48616.8.5 Implementation of database backup 48716.8.6 Implementation of database restore 48816.9 system deployment and Operation 49016.9.1 System installation Configuration 49016.9.2 database establishment and user parameter customization 49016.10 Development Note Summary 49016.11 summary 491 the 17th chapter of actual combat improve two: Song management system 49217.1 Development background 49317.2 system Analysis 49317.2.1 Requirements Analysis 49317.2.2 feasibility Analysis 49317.2.3 project personnel allocation 49417.3 system design 49517.3.1 system target 49517.3.2 system module structure 49517.3.3 development environment and operating environment 49617.3.4 Song Management system preview 49617.4 database design 50117.4.1 Database Analysis 50117.4.2 management system e-r diagram 50117.4.3 database, table design 50217.4.4 data table Diagram 50517.5 system framework Design 50617.5.1 System Framework Functional Analysis 50617.5.2 System Framework Technical Analysis 50617.5.3 System Framework Interface Design 50617.5.4 System Framework Interface implementation 50717.6 songs Click Design 51117.6.1 songs click function Analysis 51117.6.2 Song Click Technical Analysis 51217.6.3 the design of each module interface 51217.6.4 The realization of the opening song 51317.6.5 by the singer query implementation 51617.6.6 by phonetic query implementation 52017.6.7 by the number of Song name query implementation 52117.6.8 Implementation of query by song category 52417.7 playback control module design 52417.7.1 playback control module function Analysis 52517.7.2 playback control Module Technical Analysis 52517.7.3 playback Control module interface design 52517.7.4 playback control module Implementation 52517.8 Backstage module design 53017.8.1 backstage module function Analysis 53017.8.2 background module Technical Analysis 53117.8.3 background module interface Design 53117.8.4 song attribute data acquisition implementation 53217.8.5 Administrator password modification implementation 53717.9 Checkout module design 54017.9.1 checkout module function Analysis 54017.9.2 Checkout module Technical Analysis 54017.9.3 Checkout module interface design 54017.9.4 song billing implementation 54117.9.5 print receipt implementation 54217.10 System deployment and Operation 54217.10.1 System installation Configuration 54217.10.2 database establishment and user parameter customization 54317.11 Knowledge Point Summary 54317.12 Summary 544

C + + programming Bingshu

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.