About this Course
4.8
662 ratings
123 reviews
Specialization
100% online

100% online

Start instantly and learn at your own schedule.
Flexible deadlines

Flexible deadlines

Reset deadlines in accordance to your schedule.
Hours to complete

Approx. 38 hours to complete

Suggested: 每周4-8小时...
Available languages

Chinese (Simplified)

Subtitles: Chinese (Simplified)
Specialization
100% online

100% online

Start instantly and learn at your own schedule.
Flexible deadlines

Flexible deadlines

Reset deadlines in accordance to your schedule.
Hours to complete

Approx. 38 hours to complete

Suggested: 每周4-8小时...
Available languages

Chinese (Simplified)

Subtitles: Chinese (Simplified)

Syllabus - What you will learn from this course

Week
1
Hours to complete
25 minutes to complete

快来加入我们吧!

在完成了计算导论和C程序设计两门课程之后,你是不是被编写程序中逻辑思维的过程与设计精秒的小程序解决实际生活中的问题所深深吸引?你是不是有时也会为大篇幅的程序设计中查错、复用等问题而纠结?快来加入专项课程的第三门课程《C++程序设计》中来吧,为你撑起“面向对象”的另一片天地!通过这门课程的学习,你将有能力驾驭大规模的程序开发,提升自身的编程素养,并为后续的算法、数据结构等课程的学习奠定坚实的基础!PS:我们这门课程一直处在不断地建设与优化当中,吸取了很多以往课程的经典视频,所以如果你看到视频中出现了不同课程的名字,也不要惊讶哦,因为你正在集百家所长:)...
Reading
2 videos (Total 5 min), 2 readings
Video2 videos
欢迎加入C++程序设计课程2m
Reading2 readings
如何学好这门课?10m
课程教材-《新标准C++程序设计》,郭炜编著,清华大学出版社10m
Week
2
Hours to complete
9 hours to complete

从C走进C++

C++是在C语言的基础上创建的一门功能更为强大的面向对象程序设计语言。在正式开始C++程序设计学习之初,我们首先回顾C语言中的高级内容,包括函数指针、命令行参数、位运算和动态内存分配,并在此基础上对C语言进行扩充,引入了引用、const关键字和常量、内联函数和重载函数、函数缺省参数等内容,为后续的C++程序设计的学习打下基础。面向对象的程序设计更接近于真实世界,它要分析待解决的问题中,有哪些类事物,每类事物都有哪些特点,不同的事物种类之间是什么关系,事物之间如何相互作用。本模块将初步介绍面向对象的程序设计的基本内容,尤其是“类”和“对象”这两个重要概念。PS:我们这门课程一直处在不断地建设与优化当中,吸取了很多以往课程的经典视频,所以如果你看到视频中出现了不同课程的名字,也不要惊讶哦,因为你正在集百家所长:)...
Reading
12 videos (Total 125 min), 2 readings, 4 quizzes
Video12 videos
命令行参数6m
位运算 25m
引用 9m
const关键字和常量5m
动态内存分配8m
内联函数和重载函数7m
函数缺省参数 4m
面向对象程序设计方法 12m
面向对象语言的发展历程9m
从客观事物抽象出类的例子 15m
类成员的可访问范围 8m
Reading2 readings
程序AC你必须知道的秘密10m
课程Slides10m
Quiz2 practice exercises
从C走进C++18m
C++初探12m
Week
3
Hours to complete
5 hours to complete

类和对象

在对类和对象有了初步的了解后,大家已经知道类是C++中十分重要的概念,它是实现面向对象程序设计的基础。类是所有面向对象的语言的共同特征,所有面向对象的语言都提供了这种类型。本模块将进一步介绍类和对象的相关深入概念与内容,包括用于初始化的构造函数,以及复制构造函数,析构函数等。...
Reading
10 videos (Total 116 min), 1 reading, 2 quizzes
Video10 videos
构造函数 14m
复制构造函数 11m
类型转换构造函数 5m
析构函数 16m
静态成员变量和静态成员函数 19m
成员对象和封闭类的概念 11m
友元6m
this指针 14m
常量对象、常量成员函数和常引用 8m
Reading1 reading
课程Slides10m
Quiz1 practice exercise
类和对象12m
Week
4
Hours to complete
5 hours to complete

运算符重载

如果不做特殊处理的话,C++的“+”“-”“*”“/”等运算符只能用于对基本类型的常量或变量进行运算,不能用于对象之间的运算。我们希望对象之间也能用这些运算符进行运算,例如,复数之间是可以进行四则运算的,两个复数对象相加如果直接用“+”运算符完成,那不是很直观和简洁吗?本模块将介绍利用C++提供的“运算符重载”机制,赋予运算符新的功能,就能解决对象之间运算的问题。...
Reading
6 videos (Total 99 min), 1 reading, 2 quizzes
Video6 videos
赋值运算符的重载 29m
运算符重载为友元函数 3m
实例 – 长度可变的整型数组类 22m
流插入运算符和流提取运算符的重载16m
自增/自减运算符的重载 14m
Reading1 reading
课程Slides10m
Quiz1 practice exercise
运算符重载4m
4.8
123 ReviewsChevron Right
Career Benefit

83%

got a tangible career benefit from this course
Career promotion

50%

got a pay increase or promotion

Top Reviews

By CCOct 29th 2015

郭老师和刘老师讲的这门课非常全面且有深度,部分习题也比较具有挑战性。虽然之前曾用C和C++做过一些数值计算方面的编程,但认真完成这门课的每一个视频和每一道题还是让我觉得受益匪浅。谢谢郭老师和刘老师的精彩教学!另外,让这门课设置为On-Demand也极大地方便了像我这样已经走上工作岗位的人的时间安排。再次感谢!

By BBJan 27th 2016

Great course to help you get start with C++. Give a lot of details about class. It is good enough thinking that it is a online free course.

Instructors

Avatar

Jiaying Liu 刘家瑛, Ph.D.

Associate Professor
Institute of Computer Science & Technology
Avatar

郭 炜

讲师
北京大学信息科学技术学院教学所

About Peking University

Peking University is determined to make its education openly accessible to students in China and around the world. With over 3000 faculty members, Peking University offers excellence in teaching and learning. Founded in 1898, Peking University (PKU) was the first national comprehensive university in China. For the past 115 years, with its hundreds of thousands of outstanding alumni, Peking University has made prominent contributions in the humanities and sciences to further China's prosperity and progress....

About the 程序设计与算法 Specialization

本专项课程旨在系统培养你的程序设计与编写能力。系列课程从计算机的基础知识讲起,无论你来自任何学科和行业背景,都能快速理解;同时我们又系统性地介绍了C程序设计,C++程序设计,算法基础,数据结构与算法相关的内容,各门课之间联系紧密,循序渐进,能够帮你奠定坚实的程序开发基础;课程全部配套在线编程测试,将有效地训练和提升你编写程序的实际动手能力。并通过结业实践项目为你提供应用程序设计解决复杂现实问题的锻炼,从而积累实际开发的经验。因此,我们希望本专项课程能够帮助你完成从仅了解基本的计算机知识到能够利用高质量的程序解决实际问题的转变。...
程序设计与算法

Frequently Asked Questions

  • Once you enroll for a Certificate, you’ll have access to all videos, quizzes, and programming assignments (if applicable). Peer review assignments can only be submitted and reviewed once your session has begun. If you choose to explore the course without purchasing, you may not be able to access certain assignments.

  • When you enroll in the course, you get access to all of the courses in the Specialization, and you earn a certificate when you complete the work. Your electronic Certificate will be added to your Accomplishments page - from there, you can print your Certificate or add it to your LinkedIn profile. If you only want to read and view the course content, you can audit the course for free.

More questions? Visit the Learner Help Center.