摘要:
7.8a#include using namespace std;const int Seasons=4;const char *season[Seasons]={"Spring","Summer","Fall","Winter"};void fill(double *expenses);void show(const double *);void main78a(){ double expenses[Seasons]; fill(expenses); show(expenses); system("pa 阅读全文
posted @ 2014-04-10 10:28
天下纵横C++
阅读(129)
评论(0)
推荐(0)
摘要:
1.把C++当成一门新的语言学习(和C没啥关系!真的。); 2.看《ThinkingInC++》,不要看《C++变成死相》; 3.看《TheC++ProgrammingLanguage》和《InsideTheC++ObjectModel》,不要因为他们很难而我们自己是初学者所以就不看; 4.不要被VC、BCB、BC、MC、TC等词汇所迷惑——他们都是集成开发环境,而我们要学的是一门语言; 5.不要放过任何一个看上去很简单的小编程问题——他们往往并不那么简单,或者可以引伸出很多知识点; 6.会用VisualC++,并不说明你会C++; 7.学class并不难,template、STL... 阅读全文
posted @ 2014-04-10 10:09
天下纵横C++
阅读(170)
评论(0)
推荐(0)
摘要:
7.7//7.修改程序清单7.7中的3个数组处理函数,使之使用两个指针参数来表示区间.//fill_array()函数不返回实际读取了多少个数字,而是返回一个指针,该指针//指向最后被填充的位置;其他的函数可以将该指针作为第二个参数,以标识//数据结尾。#include using namespace std;double *Fill_array(double *arr);////因为是对数组进行操作,所以可以不用返回值;void const Show_array(const double *arr,double *Epoint);void Reverse_array(double *arr, 阅读全文
posted @ 2014-04-10 10:05
天下纵横C++
阅读(216)
评论(0)
推荐(0)

浙公网安备 33010602011771号