![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++编程思想
huahuahailang
微信号:huahuahailang
欢迎一起技术交流。
展开
-
C++编程思想----第二章---程序
2.4//:C02:Stream2.cpp#includeusing namespace std;int main(){ cout<<"decimal:"<<dec<<15<<endl; cout<<"octal:"<<oct<<15<<endl; cout<<"hex:"<<hex<<15<<endl; cout<<"a floating-point numb原创 2013-06-16 17:09:15 · 769 阅读 · 0 评论 -
C++编程思想第二章课后答案
2.2//:S02:Area.cpp#includeusing namespace std;int main(){ const float pi=3.141592654; float radius; cout<<"Enter the radius: "; cin>>radius; cout<<"The area is "<<pi * radius * radius<<en原创 2013-06-18 16:18:58 · 1577 阅读 · 0 评论 -
C ++ 编程思想(卷一) 笔记
有一部分错别字第一章1、OOP的基本思想:创建抽象的数据类型。2、类描述了特性(数据元素)和行为(功能)的对象,类实际上是数据类型。3、向对象发送消息,调用相应的接口函数。4、访问控制的理由:1-防止客户程序员插手他们不应当接触的部分。2-允许库设计者去改变这个类的内部工作方式,而不必担心这样做会影响客户程序员。public:对所有人都可用。private除了该类型的创原创 2013-08-20 09:06:16 · 1975 阅读 · 0 评论 -
C ++ 编程思想(卷二) 笔记
有一部分错别字第一章1、异常处理是C++的主要特征之一2、assert():用于开发阶段调试,#define NDEBUG 使得assert()失效。3、C语言中错误处理信息:1-在函数中返回错误信息。2-使用C库的信号处理系统signal(),raise()。3-使用C库的setjmp()和longjmp().信号处理方法和setjmp、longjmp函数不调用析构函数,对象不能原创 2013-08-20 09:08:26 · 2317 阅读 · 0 评论 -
编程之美3.2 电话号码对应英语单词
使用递归方法#includeusing namespace std;char num_char[10][5]={ "","","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};int total[10]={0,0,3,3,3,3,3,4,3,4};const int length=3;int number[le原创 2013-09-13 14:51:39 · 976 阅读 · 0 评论