比思論壇

標題: C++ By Example(五) Arrays and pointers (Greg Perry英文版) [打印本頁]

作者: lcj1985316    時間: 2016-5-7 10:16
標題: C++ By Example(五) Arrays and pointers (Greg Perry英文版)
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

作者: 蒼之濤    時間: 2016-5-7 10:32
我只会用,不会编




歡迎光臨 比思論壇 (http://108.170.5.76/) Powered by Discuz! X2.5