Tutorial 01

Uploaded from authorPOINTLite
Views:
 
Category: Entertainment
     
 

Presentation Description

No description available.

Comments

Presentation Transcript

Tutorial 1 Programming Tools: 

Tutorial 1 Programming Tools CSC1110 Introduction to Computing Using C

outline: 

outline Course web page Compiler (Visual Studio Express) Assignment 1 Plagiarism

General information: 

General information

General information: 

General information Course homepage WebCT: http://webct.cuhk.edu.hk/webct/entryPageIns.dowebct Newsgroup: http://appsrv.cse.cuhk.edu.hk/~csc1110/web_news/newsgroups.php Tutorial notes can be downloaded before tutorial session

WebCT : 

WebCT User name and password required e.g. your student ID and CWEM password You can find the assignments’ specification You can upload your submissions mine

WebCT(Assignment Submission): 

WebCT(Assignment Submission) Choose the assignment you are going to submit

Newsgroup: 

Newsgroup

Compose a new message: 

Compose a new message Write down your question

Programming tools: 

Programming tools Visual Studio Express Integrated Development Environment (IDE) C/C++ compiler Editor Available Visual studio .net 2005 is Installed in ITSC (碧秋) Visual studio .net 2005 is available under your major PC lab Visual C++ 2008 Express Edition is downloadable at http://msdn2.microsoft.com/zh-tw/express/future/bb421473.aspx It will take you half an hour or above to install.

Slide10: 

If you use gcc or Dev-C++ to do your assignment, we recommend you to do a final compilation on Visual Studio .net 2005 before submission. Our reference compilation platform is Visual Studio Express or Visual Studio .net 2005.

What’s IDE?: 

What’s IDE? Usually includes: Editor – where you type in your code Compiler – translates C/C++ code to executable format Debugger – helps you to locate program errors e.g. Microsoft Visual Studio Express

Launch Visual Studio Express: 

Launch Visual Studio Express

Launch Visual Studio Express: 

Launch Visual Studio Express

Create a New Project (method 1):: 

Create a New Project (method 1):

Create a New Project (method 2):: 

Create a New Project (method 2): 1 2 3

C/C++ Win32 Console Project: 

C/C++ Win32 Console Project

Application Setting (Empty Project): 

Application Setting (Empty Project) 1 4

Add New Item: 

Add New Item Right click

Add New C/C++ Source File Item: 

Add New C/C++ Source File Item Name the source file Helloworld.c The suffix is .c instead of .cpp !

Type Program Helloworld.c: 

Type Program Helloworld.c

Start Compile/ Build/ Debug [F5]: 

Start Compile/ Build/ Debug [F5]

Start Compile/ Build/ Debug [F5]: 

Start Compile/ Build/ Debug [F5]

Start Without Debugging [Ctrl-F5]: 

Start Without Debugging [Ctrl-F5]

Compile/ Build Successful: 

Compile/ Build Successful

Common Errors : 

Common Errors Common Errors (1) Missing semicolon! Missing double quote!

Common Errors : 

Common Errors Check here for errors and line numbers

Assignment 1: 

Assignment 1 Will be distributed later this week The specification can be found on WebCT Submit your assignment via WebCT

Assignment 1: 

Assignment 1 Typing exercise: we provide a program to you, type it down . Specify run time argument for running the program. The program is going to read some files, and list the information of these files (name, content in the file, etc.)

Assignment 1(Specify run time argument): 

Assignment 1(Specify run time argument)

Assignment 1(Specify run time argument): 

Assignment 1(Specify run time argument) e.g. specify some files for the program to read. Create some files under your project folder to test your program

Assignment 1: 

Assignment 1 Then run you program to see the results. file name The first line in this file

Plagiarism: 

Plagiarism What is Plagiarism? Copy of the whole or parts of written assignments, programming exercises, reports, quiz papers, mid-term examinations and final examinations. DON’T disclose your .c source code to your classmates. The penalty will apply to both the one who copies the work and the one whose work is being copied, unless the latter can prove his/her work has been copied unwittingly.

Plagiarism: 

Plagiarism Consequence of Plagiarism Reported to the Department Committee and Faculty office If the case is proven after deliberation, relevant students will fail the course.

The End: 

The End Thank You!