본문 바로가기

21F/CPR

W01

Empty Project

- take a note of the location of the project

- check the option "place solution and project in the same directory"

 

Create a C language source code file

- change the extension from cpp to c

 

 

 

Compile your C program…

• VS menu: select Build | Build Solution ( F7 or Ctrl+Shift+B )

• Only one source file should exist in the project

 

When the compile was successful, run your program.

• VS menu: select Debug | Start without Debugging (Ctrl+F5)

• a terminal console window will open

 

Test on Matrix

matrix.senecacollege.ca is a Linux cluster which is the host server for your completed C programs.

1. install GlobalProtect VPN (Virtual Private Network)

• To use SSH/SFTP to matrix, users must be connected to the Seneca VPN.

2. install a Secure SHell Telnet (SSH) client which is a terminal app to sign on and use a Unix/Linux server like Matrix.

  Windows -- install PuTTY

3. install a Secure File Transfer Protocol (SFTP) GUI app for transferring files from your system to a server.

 Windows -- install WinSCP. Its UI can launch PuTTY if it was previously installed

 

 

Upload your C source code file to matrix via an SFTP application (Secure File Transfer Protocol) such as WinSCP or Filezilla. Next, compile and run the program on matrix using a terminal program with SSH (Secure SHell)

1. make C source doe file, build, run and save

2. VPN 로그인 → WinSCP 접속 후 로그인
3.  로컬에서 매트릭스로 업로드 하면 자동으로 PuTTY열림 -- 이후 cmd 이용해서 제출

it is CRITICAL that C source files are Transferred in TEXT mode, not Binary mode. Automatic mode transfer works only if *.c and *.cpp file extensions are included in the FTP client’s list of text file masks.
--> 서버로 전송할 때 옵션 TEXT로 바꾸기

Putty is the telnet client or terminal application.
You can sign on to matrix at the same time that you're tranferring a file to the matrix.

'21F > CPR' 카테고리의 다른 글

W01  (0) 2021.09.10