|
C M S C 1 1 4 C o m p u t e r S c i e n c e I S p r i n g 2 0 0 4 |
Yes. You may define global constants, but no other global variables are allowed.
No. Under the "other project requirements" section/item 4 - it explicitly forbids the use of C++ style strings. You are allowed to use C style strings (arrays of characters containing a null character).
Meaning delete any old executable files (like a.out) and delete the cxx_repository directory (if it exists). This is to save space in your account which is limited to 10 Megs of disk space. To check how much space you have used use the "quota" command (at the UNIX prompt) and it will display how much your quota is (the amount you have) and the amount used (in the "blocks" column). If the "blocks" is close (or over) the "quota" you need to delete some files. NOTE: text files generally take up very little space (meaning your .cpp or .cc or .cxx files do not use much space and you generally do not need to delete them).
Project #2 is due by 8AM on Wednesday, March 3rd, 2004.
NOTE: this has NOTHING to do with the project and is merely a "UNIX tip".
The "pipe operator" (|) is another way to "redirect output" of commands/programs. It is different than the "output redirection operator" (>) in that instead of sending it's output into a file the output can be sent to another command/program as it's input!
That means it does BOTH output redirection AND input redirection in one!
For example try running the following command(s) (at the UNIX prompt):
% who ... displays who is logged onto this machine ... % who | sort ... sends the output of the who into sort (see note below) ... % who | sort | grep "^..114" ... a select list of people ...Note that the second version runs the who command and then PIPES its output into the UNIX sort command (which takes input and sorts it alphabetically and then displays it back to the screen. sort is a UNIX "utility" (program) that takes standard input and prints it back to the screen (standard output) in sorted order.
|
See the class syllabus for policies concerning email Last Modified: Thu Feb 26 10:05:48 EST 2004 |
|
|
|
|
|