Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 224 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
224
Dung lượng
2,37 MB
Nội dung
[...]... PREFACE C++ Programs toAccompanyProgrammingLogicandDesign (also known as C++ PAL) is designed to provide students with an opportunity to write C++programs as part of an Introductory ProgrammingLogic course It is written to be a companion text to the student’s primary text, ProgrammingLogicand Design, Fifth Edition, by Joyce Farrell This textbook assumes no programming language experience and provides... arithmetic and assignment operators, and using sequential statements to write a complete C++ program In Chapter 3, students learn how to transform pseudocode and flowcharts into C++programs Chapters 4 and 5 introduce students to writing C++programs that make decisions andprograms that use looping constructs Students learn to use C++to develop more sophisticated programs that include using arrays and passing... ORGANIZATION AND COVERAGE C++ PAL provides students with a review of the programming concepts they are introduced to in their primary textbook It also shows them how to use C++to transform their program logicanddesign into working programs The structure of a C++ program, how to compile and run a C++ console program, and introductory object-oriented concepts are introduced in Chapter 1 Chapter 2 discusses C++ s... following irrelevant and extraneous details The examples in C++ PAL are often examples presented in the primary textbook, Programming Logicand Design, Fifth Edition The following table shows the correlation between topics in the two books C++PAL Programming Logicand Design, Fifth Edition Chapter 1: An Introduction toC++and the C++ Chapter 1: An Overview of Computers andLogicProgramming Environment... finished Chapter 1 of your book, Programming Logicand Design, Fifth Edition, by Joyce Farrell This chapter introduces the C++programming language and its history It explains some introductory objectoriented concepts, and describes the process of compiling and executing a C++ program You begin writing C++programs in Chapter 2 of this book THE C++PROGRAMMING LANGUAGE The C programming language was written... concepts to be successful at reading and working with C++programs in this book Note, however, that you will not learn enough to make you a C++ programmer You will have to take additional courses in C++to become a C++ programmer This book teaches you only the basics To fully understand the term “object-oriented,” you need to know a little about procedural programming Procedural programming is a style of programming. .. »NOTE In Programming Logicand Design, Fifth Edition, data type num is used to refer to all numeric data types A distinction is not made between int and double as it is in C++ VARIABLES, OPERATORS, AND WRITING PROGRAMS USING SEQUENTIAL STATEMENTS EXERCISE 2-1: USING C++ VARIABLES, DATA TYPES, AND KEYWORDS In this exercise, you use what you have learned about naming C++ variables, C++ data types, and keywords... programming language and its history Explain introductory concepts and terminology used in object-oriented programming Recognize the structure of a C++ program Complete the C++ development cycle, which includes creating a source code file, compiling the source code, and executing a C++ program 1 AN INTRODUCTION TOC++AND THE C++PROGRAMMING ENVIRONMENT You should do the exercises and labs in this chapter... editor such as Notepad AN INTRODUCTION TOC++AND THE C++PROGRAMMING ENVIRONMENT EXECUTING A C++ PROGRAM To execute the Hello World program, do the following: »NOTE You must be in the same directory that contains the exe file when you execute the program 1 Open a Command Prompt window To do this in Windows XP, click the Start button, select All Programs, select Accessories, and then select Command... to complete partially pre-written C++programs Using partially pre-written programs allows students to focus on individual concepts rather than an entire program The labs also allow students the opportunity to see their programs execute C++ PAL is unique because: » It is written and designed to correspond to the topics in the primary textbook, Programming Language and Design, Fifth Edition » The examples .
PREFACE
C++ Programs to Accompany Programming Logic and Design (also known as C++ PAL)
is designed to provide students with an opportunity to write C++ programs. them how to use C++ to transform their program
logic and design into working programs. The structure of a C++ program, how to compile and
run a C++ console