C++ Arrays and Loops
Offered By: Coursera Project Network via Coursera
Course Description
Overview
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.
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.
Taught by
David Dalsveen
Related Courses
Computer GraphicsUniversity of California, San Diego via edX Intro to Parallel Programming
Nvidia via Udacity Initiation à la programmation (en C++)
École Polytechnique Fédérale de Lausanne via Coursera C++ For C Programmers, Part A
University of California, Santa Cruz via Coursera Introduction à la programmation orientée objet (en C++)
École Polytechnique Fédérale de Lausanne via Coursera