Introduction to Debugging Techniques in Visual C++ 6.0

Slides:



Advertisements
Similar presentations
Lecture 1: Overview of Computers & Programming
Advertisements

Chapter 1 - An Introduction to Computers and Problem Solving
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
1 CSE1301 Computer Programming: Lecture 15 Flowcharts and Debugging.
1 Session-I & II CSIT-121 Spring 2006 Session Targets Introducing the VC++.NET Solving problems on computer Programming in C++ Writing and Running Programs.
CS1061 C Programming Lecture 3: The Programming Environment + Introduction to the Concept of an Algorithm A. O’Riordan, 2004.
Chapter 16 Programming and Languages: Telling the Computer What to Do.
1 CSE1301 Computer Programming: Lecture 15 Flowcharts, Testing and Debugging.
1 8/30/06CS150 Introduction to Computer Science 1 Your First C++ Program.
An Introduction to Software Visualization Dr. Jonathan I. Maletic Software DevelopMent Laboratory Department of Computer Science Kent State University.
CH07: Writing the Programs Does not teach you how to program, but point out some software engineering practices that you should should keep in mind as.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
SE 313 – Computer Graphics and Visual Programming Lecture 5: Geometric Transformations Lecturer: Gazihan Alankuş Please look at the last slides for assignments.
Introduction to High-Level Language Programming
1 Programming and Problem Solving — Software Engineering (Read Chap. 2)
Introduction COMP104: Fundamentals and Methodology.
Chapter 2 Overview of C Instructor: Kun-Mao Chao ( 台大資工 趙坤茂 )
Introduction CSE 1310 – Introduction to Computers and Programming Vassilis Athitsos University of Texas at Arlington 1.
CS Tutorial 1 Getting Started with Visual Studio 2012 (Visual Studio 2010 are no longer available on MSDNAA, please choose Visual Studio 2012 which.
1 Documenting Your Project. 2 Documenting your Project Insert Banner Comments in your code Comment - coding statement used by humans not the compiler.
COP 3530 PROGRAM, FILE & DATA STRUCTURES Syllabus Syllabus Lab Information Lab Information Overrides Overrides Questions? Questions?
ZONG Wen Department of Computer Science and Engineering The Chinese University of Hong Kong
C++ Programming Language Lecture 2 Problem Analysis and Solution Representation By Ghada Al-Mashaqbeh The Hashemite University Computer Engineering Department.
Software Basics. Some Pioneers Charles Babbage Analytical Engine Countess Ada Lovelace First Programmer ? John Von Neumann storing instructions in memory.
Typical C++ Environment and Library Introduction Speaker : Wei-Lu Lin Advisor : Ku-Yaw Chang 2012/10/14.
Data Structures and Algorithm Analysis Introduction Lecturer: Ligang Dong, egan Tel: , Office: SIEE Building.
1 8/31/05CS150 Introduction to Computer Science 1 Hello World!
SE 320 – Introduction to Game Development Lecture 2: Introduction to Unity Lecturer: Gazihan Alankuş Please look at the last two slides for assignments.
Peter Andreae Computer Science Victoria University of Wellington Copyright: Peter Andreae, Victoria University of Wellington Java Programs COMP 102 #3.
Computer and Programming. Computer Basics: Outline Hardware and Memory Programs Programming Languages and Compilers.
The Hashemite University Computer Engineering Department
© Peter Andreae Java Programs COMP 102 # T1 Peter Andreae Computer Science Victoria University of Wellington.
Lecture #1: Introduction to Algorithms and Problem Solving Dr. Hmood Al-Dossari King Saud University Department of Computer Science 6 February 2012.
Chapter 2- Visual Basic Schneider1 Chapter 2 Problem Solving.
Tutorial 1 Writing Your First C++ Program CSC1110C Introduction to Computer Programming By Paul Pun Acknowledgement: Special thanks to Dr. Michael Fung.
Topic: Programming Languages and their Evolution + Intro to Scratch
Computer Terms Review from what language did C++ originate?
Introduction to Event-Driven Programming
Online Courses A note given in BCC class on May 10, 2016
ICS103 Programming in C Lecture 1: Overview of Computers & Programming
TEMPERATURE CONVERSION
Lecture 2 Introduction to Programming
Introduction CSE 1310 – Introduction to Computers and Programming
Programming COMP104: Fundamentals and Methodology Introduction.
A note given in BCC class on March 15, 2016
Quick Start Guide for Visual Studio 2010
Introduction to the Development of Personal Web Pages
Manipulating File IO in Visual C++
Unit 1: Introduction Lesson 1: PArts of a java program
Programming Fundamentals (750113) Ch1. Problem Solving
Shortest-Paths Trees Kun-Mao Chao (趙坤茂)
Chapter 1 Introduction(1.1)
Measurement Part 5 Temperature.
The Problems in Using Visual C and Homework #2 Assignment
Programming Fundamentals (750113) Ch1. Problem Solving
Strings and Pointer Arrays
Life is Full of Alternatives
Programming Fundamentals (750113) Ch1. Problem Solving
Computational Physics F33SC2
Building Windows Applications by Visual C++ and Homework #3 Assignment
Computer Terms Review from what language did C++ originate?
Approximation Algorithms for the Selection of Robust Tag SNPs
Space-Saving Strategies for Computing Δ-points
Space-Saving Strategies for Computing Δ-points
Measurement Part 5 Temperature.
Trees Kun-Mao Chao (趙坤茂)
Message Mapping Mechanisms in MFC and Other Applications in Visual C++
Introduction Worksheet
Introduction to Computer Science
2 Making Blocks with INPUTS.
Presentation transcript:

Introduction to Debugging Techniques in Visual C++ 6.0 Speaker: Yao-Ting Huang Advisor: Kun-Mao Chao National Taiwan University Department of Computer Science & Information Engineering Algorithms and Computational Biology Lab. 2019/2/22

How to Reduce Bugs in Your Program Never write a program at midnight Thinking more before writing your program Design your algorithm to solve the problem Think of the programming flow Your program is better to be modular and well-organized. Choosing a suitable IDE for you to write a program Tracing programs written by experienced programmers

What If You Encounter a Bug The time of debugging depends on the structure of your program, the IDE you choose, and the programming experience. Step-by-step tracing the execution of the program. Only suitable for small-scaled programs. Toggling breaking points in possible erroneous lines of code Most commonly used approach to debug all kinds of programs. Reducing the code size by marking part of the code as comments.

About Homework #1 The grading depends on how many efforts you spend on it You can simply revise the given miles-to-kilometers conversion program. You can use the UI components in VC6.0 to build a typical Win32 application (e.g., drawing a thermometer). You can create additional functionalities (e.g., from degrees Celsius to degrees Fahrenheit). The demo of your Homework #1 is at next Thursday here. Please bring your source code and execution file.

Outlines of the Lecture Today Create, compile, and execute a program in Visual C++ 6.0 Debugging a program in Visual C++ 6.0