Pointers, Arrays, and Recursion

所在平台: Coursera

课程主页: https://www.coursera.org/learn/pointers-arrays-recursion

课程评论:没有评论

第一个写评论        关注课程

课程简介

课程名称:指针、数组与递归 概述:本课程是“C语言编程入门”专业中的第三门课程,介绍了指针、数组和递归这三个编程构造。指针通过为您提供引用其他数据位置的方式,提升了使用C语言编程的控制能力和灵活性。数组则提供了一种将数据打包的方法,确保数据序列被组合在一起。最后,递归函数——即调用自身的函数——为实现某些算法提供了迭代的替代方案,非常有用。 课程大纲: 1. **指针** - 指针是C语言中最重要和强大的特性之一,为理解数组提供了关键支持,使得程序员在编程时可以更灵活、清晰和高效地解决问题。 2. **数组** - 数组是一系列相同类型且连续的内存空间,是非常有用的数据格式,使您能够在一个变量名下存储多个数据。您将学习如何使用数组解决更复杂的问题,并为更复杂的数据类型奠定基础。 3. **指针的应用** - 完成指针和数组基础知识的掌握后,您将学习它们的重要应用,包括字符串和多维数组的操作,以及函数指针的使用,允许您将“要调用的函数”作为参数传递给另一个函数。 4. **递归** - 您将学习如何阅读和编写递归代码,这是一种通过将复杂问题表示为更简单实例解决方案的编程技术,为解决编程问题提供了另一种强大的方法。 5. **项目** - 在掌握指针和数组的基础上,您将基于课程2中编写的代码构建一副扑克牌,并评估一手扑克。在下一门课程中,您将完成程序以使用蒙特卡洛模拟计算扑克赔率。

课程大纲

Name:Pointers

Description:Pointers are one of the most important and powerful aspects of the C language. Pointers are critical to understanding arrays, which let you manipulate sequences of data. They also give a programmer control and flexibility when programming, enabling solutions that are clean and efficient. Some other languages use pointers implicitly—or pointer-like constructs—so understanding their use will make you a better programmer in any language.

Name:Arrays

Description:Arrays are sequences of memory of the same type that are guaranteed to be one after another. This is an incredibly useful data format, enabling you to store many things together under one variable name. In this module, you will learn how to use arrays to solve more complex problems and lay the groundwork for more complex data types.

Name:Uses of Pointers

Description:Now that you have mastered the basics of pointers and arrays, it is time to see some important uses of them. In this module, you will learn about how to manipulate strings and multi-dimensional arrays. You will also learn about function pointers, which allow you to pass "which function to call" as the parameter of another function.

Name:Recursion

Description:By now you are familiar with iteration, in which repetition is expressed in terms of loops. Another programming technique to accomplish similar ideas is "recursion" in which a more complex instance of a problem is expressed in terms of solutions to simpler instances of the problem. In this module, you will learn how to read and write recursive code, giving you another powerful option for how to approach programming problems.

Name:Project

Description:Now that you have learned about pointers and arrays, you will build on the code you wrote in Course 2 to build a deck of cards and evaluate a poker hand. In the next course, you will complete the program to calculate poker odds with a Monte Carlo simulation.

课程评论(0条)

课程详情

The third course in the specialization Introduction to Programming in C introduces the programming constructs pointers, arrays, and recursion. Pointers provide control and flexibility when programming in C by giving you a way to refer to the location of other data. Arrays provide a way to bundle data by guaranteeing sequences of data are grouped together. Finally, recursive functions—functions that call themselves—provide an alternative to iteration that are very useful for implementing certain algorithms.

课程标签

0人关注该课程

主题相关的课程