Assignment Submission Assignments should be submitted to: Dayu.Zhang@qc.cuny.edu Dayu.Zhang@qc.cuny.edu Subject should be: CS111 - Your Last Name, Your First Name - Assignment Number E.g. CS111 - Zhang, Dayu - Assignment01 Put your name on the first line of your program. E.g. //Name: Zhang, Dayu Assignments should be submitted by deadline. No late submission is accepted. Submitted programs that cannot be compiled will get 0 point.
Quiz All quizzes are on Wednesday. No make-up quiz is allowed.
Venus Account Hostname: venus.cs.qc.cuny.eduvenus.cs.qc.cuny.edu Username: First 2 letters of LAST NAME, followed by First 2 letters of FIRST NAME, followed by Last 4 digits of CUNYfirst ID# Password: 8 digits CUNYfirst ID# Example: John Doe, CUNYfirst ID# 12345678 Username: dojo5678 Password: 12345678
For Mac and Linux Users Go to Terminal If your username is dojo5678, enter: ssh email@example.com
Basic UNIX Commands mkdir dirname --- make a new directory dirname E.g. mkdir CS111 cd dirname --- change directory to dirname E.g. cd CS111 cd --- go to your home directory cd.. --- move up one directory in the hierarchy (there is a space between cd and..) ls --- lists your files in current directory rm filename --- removes a file
vi vi filename --- If the file named filename exists, then the first page of the file will be displayed; if the file does not exist, then a new file is created. vi editor has two modes of operation: Command mode Insert mode If currently in Command mode, type i to go to Insert mode If currently in Insert mode, type ESC to go to Command mode
vi In Command mode: :wq --- save the file and quit vi :q --- quit vi when the file has not been modified :q! --- disregard any modification and quit vi
Create and Compile Hello.cpp g++ Hello.cpp --- compile Hello.cpp./a.out --- run program
SSH Secure File Transfer Client Upload files to Venus Download files from Venus Icon on lab desktop For Mac users, use scp to download from Venus. E.g. scp firstname.lastname@example.org:Hello.cpp ~/Desktop