You should have an active ND email account.
You must have an AFS password.
Both your email and your AFS account contain sensitive information
with regard to this course.
It is your responsibility to protect
your password for your NetID (AFS password).
If at anytime during the semester
you suspect that your password
is known to others, change it immediately.
This short introduction will get you started on the vi editor.
Of course there are a lot of powerful commands in this editor
and it would take a long time to learn them all.
Fortunately you can get by in this course with
just the above. For those who wish additional information, here
is a link.
Unix command
If you are working directly in AFS space
make sure you are in your acms40390 directory.
You will be told the name(s) for the files as part of the homework assignment.
The extension is always .cpp.
There should already be a folder with the correct name in acms40390hw/.
See above for suggestions on how to move your files.
This compiles your source file,
file.cpp, into an executable program.
On unix-based systems, the executable program is automatically
named a.out.
If any errors occur in the program the g++ compiler will report these
errors. You must correct any errors and compile the program
again.
g++ file.cpp
This should execute your program on your unix system.
a.out
This will generate the executable file a.out.
(Later in the semester we will have such assignments.)
g++ file1.cpp file2.cpp file3.cpp file4.cpp
40390help: print these commands.
40390submit: submit homework to the correct folder; you can
re-submit a homework using this command. Only works
after the homework is assigned and before the due date.
40390submitted: check whether a homework is correctly submitted.
40390run: compile all your submitted homeworks for your grader.
An error message is generated if there is an error;
in this case, you should correct the errors and
re-submit and re-compile the code.
40390score: check the homework and test scores after the homework/test is graded.
40390hw: check the comments from the grader about a homework assignment.
Click here to return to home page.