학생용

C++ Arrays and Loops

4.7
별점
9개의 평가
제공자:
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영어
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.

안내형 프로젝트 진행 방식

작업 영역은 브라우저에 바로 로드되는 클라우드 데스크톱으로, 다운로드할 필요가 없습니다.

분할 화면 동영상에서 강사가 프로젝트를 단계별로 안내해 줍니다.

자주 묻는 질문

자주 묻는 질문

궁금한 점이 더 있으신가요? 학습자 도움말 센터를 방문해 보세요.