C++ Arrays and Loops

5.0
5 个评分
提供方
Coursera Project Network
在此指导项目中,您将:

Use a C++ while loop to scan the data file and save the number of elements.

Create the Array of Objects containing weather data.

Sort the weather data and store it in a file using a C++ for loop.

Clock2 hours
Intermediate中级
Cloud无需下载
Video分屏视频
Comment Dots英语(English)
Laptop仅限桌面

In this project you will read weather data from a file and populate an Array with the file data. The data is then sorted in an Array, and output to another file. Loops are used in a C++ program whenever a sequence of code must be repeated. A common use for a while loop is to read data from a file, where the file is of unknown length. A for loop, on the other hand is often used when the repeat count of a code sequence is known. A common use of a for loop is to iterate through an array. An Array is a list of items of a fixed size where each entry is the same type of data. The array could contain numbers, Strings of characters, or a user-defined data type. Note: This course works best for learners who are based in the North America region. We’re currently working on providing the same experience in other regions.

您要培养的技能

C++ Class DesignC++ For LoopsC++ While LoopsC++ File ProcessingC++ Arrays

分步进行学习

在与您的工作区一起在分屏中播放的视频中,您的授课教师将指导您完成每个步骤:

  1. Analyze the data and create a C++ Class to handle the data.

  2. Create and Populate a C++ Array with sample data.

  3. Use a C++ while loop to scan the data file and save the number of entries in the file.

  4. Create the C++ Array of Objects containing weather data using string stream.

  5. Sort the weather data and store it in a file using a C++ for loop.

指导项目工作原理

您的工作空间就是浏览器中的云桌面,无需下载

在分屏视频中,您的授课教师会为您提供分步指导

常见问题

常见问题

还有其他问题吗?请访问 学生帮助中心