projects
projects
This is an old revision of the document!
Corning Community College
CSCS1320 C/C++ Programming
~~TOC~~
To begin the exploration of structures, and to explore file access functionality.
Some notable references:
This project will deal with two independent concepts:
Please note, the two are not related, although as with many things, may often be used together (file access is extremely useful, and will often find pairings with all our covered topics- variables, selection statements, loops, pointers, arrays, and now structures too).
I've held off on really covering it until we've gotten more of the basics down, so that you can better understand the power it offers to your programming toolkit.
But first things first, the structure.
In some respects, there are 2 classifications of variables:
Both arrays and structures need to be given substance: they are nothing on their own.
The same goes for pointers, of which all arrays are a type of (all arrays are pointers, but NOT all pointers are arrays, unless you consider them an array of 1).
In that respect they are sort of like adjectives (descriptor attributes), they describe a property of a noun (or thing where attributes can be applied). For example:
The adjective “green” DESCRIBES an attribute of the frog. “green” by itself does not make sense in that context:
See what I mean? The green WHAT??
Same goes with arrays and structures. They both enhance things, but cannot be singular entities by themselves: