Lab 1: Getting started ICE0125 Programming Fundamentals II – C/C++

Slides:



Advertisements
Similar presentations
 2008 Pearson Education, Inc. All rights reserved JavaScript: Control Statements I.
Advertisements

BIM313 – Advanced Programming Techniques Debugging 1.
COSC 120 Computer Programming
 Monday, 9/9/02, Slide #1 CS106 Introduction to CS1 Monday, 9/9/02  QUESTIONS?? (Exercises, Lab #1, etc.)  Today:  More on float objects  C++ concept:
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
Review for midterm exam Dilshad M. Shahid Spring NYU.
Finding and Debugging Errors
Guidelines for working with Microsoft Visual Studio.Net.
Guidelines for working with Microsoft Visual Studio 6.
Structured Program Development in C
Computer Programming and Basic Software Engineering 4. Basic Software Engineering 1 Writing a Good Program 4. Basic Software Engineering.
IPC144 Introduction to Programming Using C Week 1 – Lesson 2
BİL528 – Bilgisayar Programlama II Making Decisions, Loops, Debugging, Designing Objects Using Classes 1.
CST 320 Compiler Methods Dr. Sherry Yang PV 171 (541)
Debugging Dwight Deugo Nesa Matic
CSEB114: PRINCIPLE OF PROGRAMMING Course Introduction.
Program Errors and Debugging Week 10, Thursday Lab.
VB – Debugging Tools Appendix D. Why do we need debugging? Every program has errors, and the process of finding these errors is debugging Types of errors.
Programming with Visual C++ A short review of the process.
Debugging Visual Basic.NET Programs ► ► Use debugging tools ► ► Set breakpoints and correct mistakes. ► ► Use a Watch and Local window to examine variables.
 2001 Prentice Hall, Inc. All rights reserved. 1 Chapter 8 - JavaScript: Control Structures I Outline 8.1 Introduction 8.2 Algorithms 8.3 Pseudocode 8.4.
INTRODUCTION TO PROGRAMMING ISMAIL ABUMUHFOUZ | CS 146.
Introduction to Problem Solving and Control Statements.
Program Development C# Programming January 30, 2007 Professor J. Sciame.
Lab00-Getting Started with VC Launch VS 2005 Launch Visual Studio 2005 – Start > All Programs > Microsoft Visual Studio 2005 > Microsoft Visual.
Dr. Qusai Abuein1 Internet & WWW How to program Chap.(7) JavaScript: Control Statements I.
CSC 1201 LAB RULES Nouf Aljaffan (C) CSC 1201 Course at KSU.
Principles of Programming CSEB134 : BS/ CHAPTER Fundamentals of the C Programming Language.
Dr. Sajib Datta Jan 15,  Instructor: Sajib Datta ◦ Office Location: ERB 336 ◦ Address: ◦ Web Site:
Debugging Watch and Text Output Alice. Debugging Techniques Several techniques are helpful in eliminating errors (bugs) in programs: careful design incremental.
Evolution of C and C++ n C was developed by Dennis Ritchie at Bell Labs (early 1970s) as a systems programming language n C later evolved into a general-purpose.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
CHAPTER 3 COMPLETING THE PROBLEM- SOLVING PROCESS AND GETTING STARTED WITH C++ An Introduction to Programming with C++ Fifth Edition.
C Program Control September 15, OBJECTIVES The essentials of counter-controlled repetition. To use the for and do...while repetition statements.
Chapter 2: The Visual Studio.NET Development Environment Visual Basic.NET Programming: From Problem Analysis to Program Design.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
CS140 – Computer Programming 1 Course Overview First Semester – Fall /1438 – 2016/2017 CS140 - Computer Programming 11.
BASIC PROGRAMMING C SCP1103 (02)
Chapter 2: The Visual Studio .NET Development Environment
CprE 185: Intro to Problem Solving (using C)
How to debug an application
Visual Basic Code & No.: CS 218
BASIC PROGRAMMING C SCP1103 (02)
Chapter 2- Visual Basic Schneider
Testing and Debugging.
Computer Programming I
Chapter 8 - JavaScript: Control Statements I
Microsoft Access 2003 Illustrated Complete
Chapter 4 – Control Structures Part 1
Microsoft Access Illustrated
Programming COMP104: Fundamentals and Methodology Introduction.
5.01 Understand Different Types of Programming Errors
1. Open Visual Studio 2008.
Chapter 3 - Structured Program Development
Chapter 2- Visual Basic Schneider
Chapter 3 – Control Structures
Chapter 3 - Structured Program Development
Debugging Visual Basic Programs
POS 408 Week 1 Individual Assignment Individual: Console Display Message//tutorfortune.com Click on below link to buy
Tonga Institute of Higher Education IT 141: Information Systems
Debugging Dwight Deugo
1-6 Midterm Review.
Tonga Institute of Higher Education IT 141: Information Systems
Warmup Write a function to add two integer parameters and return the result.
Chapter 15 Debugging.
Murach's JavaScript and jQuery (3rd Ed.)
IPC144 Introduction to Programming Using C Week 2 – Lesson 2
Structural Program Development: If, If-Else
Chapter 15 Debugging.
Presentation transcript:

Lab 1: Getting started ICE0125 Programming Fundamentals II – C/C++ Lab & homework regulations Introduction to programmer’s tools Working with Visual Studio 6.0 Logic building with C Lab assignments & Homework #1 Instructor: Tran Minh Trung Email: trungtm@icu.ac.kr

Lab regulations Lab instructor: Student: Reviews class lectures Demonstrates and illustrates examples Introduces Lab assignments Help student to understand/solve problems Student: Try to SOLVE easy assignments and QUESTION on hard assignments All have to stay and work on assignments till the end of the lab even when you think assignments are too easy (practicing is important).

Homework regulations There will be 10 hw assignments. Due before after a week. Late Acceptance: 50% penalty (No Exception). How to submit: Send email to: tuantla@icu.ac.kr Subject: [ICE0125] (YouID ) Homework # Attached files: Source code Readme (how to run program – if necessary) Document for none programming homework Note: You should compress files into one zip file with name: (Your student ID)_HW_#.zip Eg.: 20042117_HW_1.zip

Introduction to programmer’s tools What do you need? Text editor: WinEdit, VIM, Editplus …. Compiler: Why do you need a powerful programming tools? To manage a project with hundreds to thousands files To debug errors occurred in a program with thousands lines To use thousands of syntaxes that you can’t remember …. Existing powerful programming tools Microsoft Visual C ++; Bloodshed Dev C++; Borland C++

MS. Visual C++ 6.0 Create new project

Select project type

Select Console application type

Compiling a program

Building a program

Execute a program

Debug bar Right click on toolbar and select Debug option to show Debug bar Right click on the line that you want to Insert or Remove a Breakpoint

Start debugging

Debug functions

Stopping at a Breakpoint The “Watch” window will show the values of the variables

Checking a value of a variable

Others debug functions Step into Step out Step over Run to cursor Exceptions Threads Modules

Review of Chapter 2 & 3 Logic building with C

Chapter 2: Introduction to C programming Memory Concepts Understand variables: type, size, value Arithmetic in C Remember the precedence of arithmetic operators Decision Making: Equality and Relational Operators Remember the meaning and syntax of equality and relational operators

Chapter 3: Structured Program Development in C Basic problem-solving techniques 2 important primary steps Thorough understanding of the problem Carefully plan an approach for solving it Algorithms, Pseudo code, control structures Top-down, stepwise refinement 3 phases programming Initialization, processing, and termination Control statements If…else, while, nested control, counter and sentinel controlled repetition Operators: assignment, increment, decrement

[Lab 1] assignments #1 Chapter 2 Try Example in Fig.2.13 (pg. 42) Solve problem:2.19 (pg. 53)

[Lab 1] assignments #2 Chapter 3 Try Example in Fig.3.9 (pg. 77) Solve problem:3.20 (pg. 93)

Homework See the course website Deadline: 12 PM (Midnight), September 11 2008.