One Dimensional Array Exercise
Get a copy of the
arrays.cpp
file by:
Entering the
cp
command:
cp /net/data/ftp/pub/class/110/ftp/cpp/arrays.cpp arrays.cpp
or, using your mouse to copy and paste the program into Pico, or
Using the Hercules command-line ftp program to copy this file from the CS Department's anonymous ftp site.
The path: pub/class/110/ftp/cpp The file:
arrays.cpp
Compile and run this C++ program.
Add code to print out the values of all the array elements.
Compile and run this C++ program.
When it is running correctly, use Script to create a file called arrays.log
Show
arrays.log
to your lab instructor.
This page last modified:
Thursday, 06-Oct-2011 12:13:32 CST
Accessed
times.
Copyright: Department of Computer Science, University of Regina.