PDF Starting Out with C From Control Structures through Objects 7th Edition Edition Tony Gaddis download
PDF Starting Out with C From Control Structures through Objects 7th Edition Edition Tony Gaddis download
https://ebookfinal.com/download/starting-out-with-c-early-objects-5th-
edition-tony-gaddis/
ebookfinal.com
https://ebookfinal.com/download/starting-out-with-visual-c-2012-with-
cd-rom-3rd-edition-tony-gaddis/
ebookfinal.com
https://ebookfinal.com/download/starting-out-with-app-inventor-for-
android-1st-edition-tony-gaddis/
ebookfinal.com
https://ebookfinal.com/download/starting-out-the-english-starting-out-
everyman-chess-1st-edition-neil-mcdonald/
ebookfinal.com
Starting Out Dutch Defence Starting Out Everyman Chess 1st
Edition Neil Macdonald
https://ebookfinal.com/download/starting-out-dutch-defence-starting-
out-everyman-chess-1st-edition-neil-macdonald/
ebookfinal.com
https://ebookfinal.com/download/starting-out-attacking-play-starting-
out-everyman-chess-1st-edition-james-plaskett/
ebookfinal.com
https://ebookfinal.com/download/data-structures-and-other-objects-
using-c-4th-edition-main/
ebookfinal.com
https://ebookfinal.com/download/starting-out-in-bridge-1st-edition-
paul-lamford/
ebookfinal.com
https://ebookfinal.com/download/starting-out-defensive-play-1st-
edition-angus-dunnington/
ebookfinal.com
Starting Out with C From Control Structures through
Objects 7th Edition Edition Tony Gaddis Digital Instant
Download
Author(s): Tony Gaddis
ISBN(s): 9780132576253, 0132576252
Edition: 7th Edition
File Details: PDF, 53.69 MB
Year: 2011
Language: english
get with the programming
C++
From Control Structures
through Objects
SEVENTH EDITION
Tony Gaddis
Haywood Community College
Addison-Wesley
Boston Columbus Indianapolis New York San Francisco Upper Saddle River
Amsterdam Cape Town Dubai London Madrid Milan Munich Paris Montreal Toronto
Delhi Mexico City Sao Paulo Sydney Hong Kong Seoul Singapore Taipei Tokyo
Editorial Director: Marcia Horton Manufacturing Buyer: Lisa McDowell
Editor-in-Chief: Michael Hirsch Art Director: Linda Knowles
Editorial Assistant: Stephanie Sellinger Cover Designer: Joyce Cosentino Wells
Vice President, Marketing: Patrice Jones Cover Image: © Fotosearch/Rubberball Photos
Marketing Manager: Yezan Alayan Media Editor: Daniel Sandin
Marketing Coordinator: Kathryn Ferranti Media Project Manager: Wanda Rockwell
Vice President, Production: Vince O Brien Full-Service Vendor: Aptara®, Inc.
Managing Editor: Jeff Holcomb Project Management: Dennis Free/Aptara®, Inc.
Senior Production Project Manager: Marilyn Lloyd Printer/Binder: Edwards Brothers
Senior Operations Supervisor: Alan Fischer Cover Printer: Lehigh-Phoenix Color
Copyright © 2012, 2009, 2007, 2005 Pearson Education, Inc., publishing as Addison-Wesley. All rights
reserved. Manufactured in the United States of America. This publication is protected by Copyright, and per-
mission should be obtained from the publisher prior to any prohibited reproduction, storage in a retrieval sys-
tem, or transmission in any form or by any means, electronic, mechanical, photocopying, recording, or likewise.
To obtain permission(s) to use material from this work, please submit a written request to Pearson Education,
Inc., Permissions Department, 501 Boylston Street, Suite 900, Boston, Massachusetts 02116.
Many of the designations by manufacturers and sellers to distinguish their products are claimed as trademarks.
Where those designations appear in this book, and the publisher was aware of a trademark claim, the designa-
tions have been printed in initial caps or all caps.
Gaddis, Tony.
Starting out with C++ : from control structures through objects / Tony
Gaddis. 7th ed.
p. cm.
Includes bibliographical references and index.
ISBN-13: 978-0-13-257625-3 (alk. paper)
ISBN-10: 0-13-257625-2 (alk. paper)
1. C++ (Computer program language) I. Title.
QA76.73.C153G33 2012
005.13'3 dc22
2011003252
10 9 8 7 6 5 4 3 2 1 EB 15 14 13 12 11
Preface xiii
CHAPTER 1 Introduction to Computers and Programming 1
CHAPTER 2 Introduction to C++ 27
CHAPTER 3 Expressions and Interactivity 85
CHAPTER 4 Making Decisions 149
CHAPTER 5 Loops and Files 227
CHAPTER 6 Functions 301
CHAPTER 7 Arrays 377
CHAPTER 8 Searching and Sorting Arrays 451
CHAPTER 9 Pointers 491
CHAPTER 10 Characters, C-Strings, and More About the String Class 541
CHAPTER 11 Structured Data 593
CHAPTER 12 Advanced File Operations 651
CHAPTER 13 Introduction to Classes 705
CHAPTER 14 More About Classes 799
CHAPTER 15 Inheritance, Polymorphism, and Virtual Functions 869
CHAPTER 16 Exceptions, Templates, and the Standard Template Library (STL) 947
CHAPTER 17 Linked Lists 1003
CHAPTER 18 Stacks and Queues 1043
CHAPTER 19 Recursion 1101
CHAPTER 20 Binary Trees 1137
v
vi Contents at a Glance
Preface xiii
vii
viii Contents
CHAPTER 10 Characters, C-Strings, and More About the string Class 541
10.1 Character Testing 541
10.2 Character Case Conversion 545
x Contents
13.13 Focus on Problem Solving and Program Design: An OOP Case Study 763
13.14 Focus on Object-Oriented Programming: Creating an Abstract Array
Data Type 770
13.15 Focus on Object-Oriented Design: The Unified Modeling Language (UML) 774
13.16 Focus on Object-Oriented Design: Finding the Classes and Their
Responsibilities 777
CHAPTER 16 Exceptions, Templates, and the Standard Template Library (STL) 947
16.1 Exceptions 947
16.2 Function Templates 966
16.3 Focus on Software Engineering: Where to Start When Defining Templates 972
16.4 Class Templates 973
16.5 Introduction to the Standard Template Library (STL) 983
Welcome to Starting Out with C++: From Control Structures through Objects, 7th edi-
tion. This book is intended for use in a two-semester C++ programming sequence, or an
accelerated one-semester course. Students new to programming, as well as those with
prior course work in other languages, will nd this text bene cial. The fundamentals of
programming are covered for the novice, while the details, pitfalls, and nuances of the
C++ language are explored in-depth for both the beginner and more experienced student.
The book is written with clear, easy-to-understand language and it covers all the necessary
topics for an introductory programming course. This text is rich in example programs that
are concise, practical, and real-world oriented, ensuring that the student not only learns
how to implement the features and constructs of C++, but why and when to use them.
xiii
xiv Preface
Figure P-1
Chapter 1
Introduction
Chapters 2 7
Basic Language
Elements
*A few subtopics in
Chapter 12 require
Chapter 10 Chapters 9 and 11.
Characters, Strings, Chapter 11
and the string Class Structures
Chapter 13
Introduction to
Classes
Chapter 14
More About Classes
Chapter 15
Inheritance and
Polymorphism
Chapter 16
Exceptions,
Templates, and STL
Chapter 17
Linked Lists
Chapter 18 Chapter 19
Stacks and Queues Recursion
Chapter 20
Binary Trees
xvi Preface
Chapter 6: Functions
In this chapter the student learns how and why to modularize programs, using both void
and value returning functions. Argument passing is covered, with emphasis on when argu-
ments should be passed by value versus when they need to be passed by reference. Scope
of variables is covered and sections are provided on local versus global variables and on
static local variables. Overloaded functions are also introduced and demonstrated.
Chapter 7: Arrays
In this chapter the student learns to create and work with single and multidimensional
arrays. Many examples of array processing are provided including examples illustrating
how to nd the sum, average, highest and lowest values in an array and how to sum the
rows, columns, and all elements of a two-dimensional array. Programming techniques using
parallel arrays are also demonstrated and the student is shown how to use a data le as an
input source to populate an array. STL vectors are introduced and compared to arrays.
Chapter 9: Pointers
This chapter explains how to use pointers. Pointers are compared to and contrasted with
reference variables. Other topics include pointer arithmetic, initialization of pointers, rela-
tional comparison of pointers, pointers and arrays, pointers and functions, dynamic mem-
ory allocation, and more.
Chapter 10: Characters, C-strings, and More About the string Class
This chapter discusses various ways to process text at a detailed level. Library functions
for testing and manipulating characters are introduced. C-strings are discussed, and the
technique of storing C-strings in char arrays is covered. An extensive discussion of the
string class methods is also given.
Appendix F: Namespaces
This appendix explains namespaces and their purpose. Examples showing how to de ne a
namespace and access its members are given.
Concept Each major section of the text starts with a concept statement.
Statements This statement summarizes the ideas of the section.
Example Programs The text has hundreds of complete example programs, each
designed to highlight the topic currently being studied. In most
cases, these are practical, real-world examples. Source code for
these programs is provided so that students can run the
programs themselves.
Program Output After each example program there is a sample of its screen
output. This immediately shows the student how the program
should function.
In the Spotlight Each of these sections provides a programming problem and a
detailed, step by step analysis showing the student how to solve
it.
VideoNotes A series of online videos, developed speci cally for this book, is
VideoNote available for viewing at www.pearsonhighered.com/gaddis.
Icons appear throughout the text alerting the student to videos
about speci c topics.
Checkpoints Checkpoints are questions placed throughout each chapter as a
self-test study aid. Answers for all Checkpoint questions can be
downloaded from the book s Companion Website at
www.pearsonhighered.com/gaddis. This allows students to
check how well they have learned a new topic.
Notes Notes appear at appropriate places throughout the text. They
are short explanations of interesting or often misunderstood
points relevant to the topic at hand.
Warnings Warnings are notes that caution the student about certain C++
features, programming techniques, or practices that can lead to
malfunctioning programs or lost data.
Preface xxi
Supplements
Instructor Resources
The following supplements are available to quali ed instructors only:
Answers to all Review Questions in the text
Solutions for all Programming Challenges in the text
PowerPoint presentation slides for every chapter
Preface xxiii
Acknowledgments
There have been many helping hands in the development and publication of this text. We
would like to thank the following faculty reviewers for their helpful suggestions and expertise.
I would like to thank my family for their love and support in all of my many projects. I
would also like to thank Christopher Rich for his assistance in this revision. I am
extremely fortunate to have Michael Hirsch as my editor, and Stephanie Sellinger as edito-
rial assistant. Michael s support and encouragement makes it a pleasure to write chapters
and meet deadlines. I am also fortunate to have Yez Alayan as marketing manager, and
Kathryn Ferranti as marketing coordinator. They do a great job getting my books out to
the academic community. I had a great production team led by Jeff Holcomb, Managing
Editor, and Marilyn Lloyd, Senior Production Project Manager. Thanks to you all!
Preface xxvii
Introduction to Computers
1 and Programming
TOPICS
CO NCE PT: Computers can do many different jobs because they are programmable.
Think about some of the different ways that people use computers. In school, students use
computers for tasks such as writing papers, searching for articles, sending e-mail, and par-
ticipating in online classes. At work, people use computers to analyze data, make presen-
tations, conduct business transactions, communicate with customers and coworkers,
control machines in manufacturing facilities, and do many other things. At home, people
use computers for tasks such as paying bills, shopping online, social networking, and play-
ing computer games. And don t forget that smart phones, iPods®, car navigation systems,
and many other devices are computers as well. The uses of computers are almost limitless
in our everyday lives.
Computers can do such a wide variety of things because they can be programmed. This
means that computers are not designed to do just one job, but any job that their programs
tell them to do. A program is a set of instructions that a computer follows to perform a
task. For example, Figure 1-1 shows screens using Microsoft Word and PowerPoint, two
commonly used programs.
1
2 Chapter 1 Introduction to Computers and Programming
CON CE PT: All computer systems consist of similar hardware devices and software
components. This section provides an overview of standard computer
hardware and software organization.
Hardware
Hardware refers to the physical components that a computer is made of. A computer, as
we generally think of it, is not an individual device, but a system of devices. Like the
instruments in a symphony orchestra, each device plays its own part. A typical computer
system consists of the following major components:
1. The central processing unit (CPU)
2. Main memory
3. Secondary storage devices
4. Input devices
5. Output devices
The organization of a computer system is depicted in Figure 1-2.
Figure 1-2
Central Processing
Unit
Output
Devices
Input
Devices
Main Memory
(RAM)
Secondary
Storage Devices
4 Chapter 1 Introduction to Computers and Programming
The CPU
When a computer is performing the tasks that a program tells it to do, we say that the com-
puter is running or executing the program. The central processing unit, or CPU, is the part
of a computer that actually runs programs. The CPU is the most important component in a
computer because without it, the computer could not run software.
In the earliest computers, CPUs were huge devices that weighed tons. They were made of
electrical and mechanical components such as vacuum tubes and switches. Today, CPUs are
small chips, known as microprocessors, that can be held in the palm of your hand. In addi-
tion to being much smaller than the old electromechanical CPUs in early computers, today s
microprocessors are also much more powerful.
The CPU s job is to fetch instructions, follow the instructions, and produce some result.
Internally, the central processing unit consists of two parts: the control unit and the arith-
metic and logic unit (ALU). The control unit coordinates all of the computer s operations. It
is responsible for determining where to get the next instruction and regulating the other
major components of the computer with control signals. The arithmetic and logic unit, as its
name suggests, is designed to perform mathematical operations. The organization of the
CPU is shown in Figure 1-3.
Figure 1-3
Arithmetic and
Logic Unit
Instruction Result
(Input) (Output)
Control Unit
Main Memory
You can think of main memory as the computer s work area. This is where the computer
stores a program while the program is running, as well as the data that the program is
working with. For example, suppose you are using a word processing program to write an
essay for one of your classes. While you do this, both the word processing program and
the essay are stored in main memory.
Main memory is commonly known as random-access memory or RAM. It is called this
because the CPU is able to quickly access data stored at any random location in RAM.
RAM is usually a volatile type of memory that is used only for temporary storage while a
program is running. When the computer is turned off, the contents of RAM are erased.
Inside your computer, RAM is stored in small chips.
A computer s memory is divided into tiny storage locations known as bytes. One byte is
enough memory to store only a letter of the alphabet or a small number. In order to do
anything meaningful, a computer must have lots of bytes. Most computers today have
millions, or even billions, of bytes of memory.
Each byte is divided into eight smaller storage locations known as bits. The term bit
stands for binary digit. Computer scientists usually think of bits as tiny switches that can
be either on or off. Bits aren t actual switches, however, at least not in the conventional
sense. In most computer systems, bits are tiny electrical components that can hold either a
positive or a negative charge. Computer scientists think of a positive charge as a switch in
the on position and a negative charge as a switch in the off position.
Each byte is assigned a unique number known as an address. The addresses are ordered
from lowest to highest. A byte is identi ed by its address in much the same way a post
of ce box is identi ed by an address. Figure 1-4 shows a group of memory cells with their
addresses. In the illustration, sample data is stored in memory. The number 149 is stored
in the cell with the address 16, and the number 72 is stored at address 23.
Figure 1-4
0 1 2 3 4 5 6 7 8 9
10 11 12 13 14 15 16 17 18 19
149
20 21 22 23 24 25 26 27 28 29
72
Secondary Storage
Secondary storage is a type of memory that can hold data for long periods of time even
when there is no power to the computer. Frequently used programs are stored in second-
ary memory and loaded into main memory as needed. Important information, such as
word processing documents, payroll data, and inventory gures, is saved to secondary
storage as well.
The most common type of secondary storage device is the disk drive. A disk drive stores
data by magnetically encoding it onto a circular disk. Most computers have a disk drive
mounted inside their case. External disk drives, which connect to one of the computer s
6 Chapter 1 Introduction to Computers and Programming
communication ports, are also available. External disk drives can be used to create backup
copies of important data or to move data to another computer.
In addition to external disk drives, many types of devices have been created for copying
data, and for moving it to other computers. For many years oppy disk drives were popu-
lar. A oppy disk drive records data onto a small oppy disk, which can be removed from
the drive. The use of oppy disk drives has declined dramatically in recent years, in favor
of superior devices such as USB drives. USB drives are small devices that plug into the
computer s USB (universal serial bus) port, and appear to the system as a disk drive. USB
drives, which use ash memory to store data, are inexpensive, reliable, and small enough
to be carried in your pocket.
Optical devices such as the CD (compact disc) and the DVD (digital versatile disc) are
also popular for data storage. Data is not recorded magnetically on an optical disc, but is
encoded as a series of pits on the disc surface. CD and DVD drives use a laser to detect the
pits and thus read the encoded data. Optical discs hold large amounts of data, and
because recordable CD and DVD drives are now commonplace, they are good mediums
for creating backup copies of data.
Input Devices
Input is any information the computer collects from the outside world. The device that
collects the information and sends it to the computer is called an input device. Common
input devices are the keyboard, mouse, scanner, digital camera, and microphone. Disk
drives, CD/DVD drives, and USB drives can also be considered input devices because pro-
grams and information are retrieved from them and loaded into the computer s memory.
Output Devices
Output is any information the computer sends to the outside world. It might be a sales
report, a list of names, or a graphic image. The information is sent to an output device,
which formats and presents it. Common output devices are monitors, printers, and speak-
ers. Output sent to a monitor is sometimes called softcopy, while output sent to a
printer is called hardcopy. Disk drives, USB drives, and CD/DVD recorders can also be
considered output devices because the CPU sends them information to be saved.
Software
If a computer is to function, software is not optional. Everything that a computer does,
from the time you turn the power switch on until you shut the system down, is under the
control of software. There are two general categories of software: system software and
application software. Most computer programs clearly t into one of these two categories.
Let s take a closer look at each.
1.2 Computer Systems: Hardware and Software 7
System Software
The programs that control and manage the basic operations of a computer are generally
referred to as system software. System software typically includes the following types of
programs:
Operating Systems
An operating system is the most fundamental set of programs on a computer. The
operating system controls the internal operations of the computer s hardware, man-
ages all the devices connected to the computer, allows data to be saved to and
retrieved from storage devices, and allows other programs to run on the computer.
Utility Programs
A utility program performs a specialized task that enhances the computer s
operation or safeguards data. Examples of utility programs are virus scanners,
file-compression programs, and data-backup programs.
Software Development Tools
The software tools that programmers use to create, modify, and test software are
referred to as software development tools. Compilers and integrated development
environments, which we discuss later in this chapter, are examples of programs
that fall into this category.
Application Software
Programs that make a computer useful for everyday tasks are known as application
software. These are the programs that people normally spend most of their time running
on their computers. Figure 1-1, at the beginning of this chapter, shows screens from two
commonly used applications Microsoft Word, a word processing program, and Microsoft
PowerPoint, a presentation program. Some other examples of application software are
spreadsheet programs, e-mail programs, Web browsers, and game programs.
Checkpoint
www.myprogramminglab.com
1.1 Why is the computer used by so many different people, in so many different
professions?
1.2 List the ve major hardware components of a computer system.
1.3 Internally, the CPU consists of what two units?
1.4 Describe the steps in the fetch/decode/execute cycle.
1.5 What is a memory address? What is its purpose?
1.6 Explain why computers have both main memory and secondary storage.
1.7 What are the two general categories of software?
1.8 What fundamental set of programs control the internal operations of the
computer s hardware?
1.9 What do you call a program that performs a specialized task, such as a virus
scanner, a le-compression program, or a data-backup program?
1.10 Word processing programs, spreadsheet programs, e-mail programs, Web browsers,
and game programs belong to what category of software?
8 Chapter 1 Introduction to Computers and Programming
What Is a Program?
Computers are designed to follow instructions. A computer program is a set of instruc-
tions that tells the computer how to solve a problem or perform a task. For example, sup-
pose we want the computer to calculate someone s gross pay. Here is a list of things the
computer should do:
1. Display a message on the screen asking How many hours did you work?
2. Wait for the user to enter the number of hours worked. Once the user enters a
number, store it in memory.
3. Display a message on the screen asking How much do you get paid per hour?
4. Wait for the user to enter an hourly pay rate. Once the user enters a number, store it in
memory.
5. Multiply the number of hours by the amount paid per hour, and store the result in
memory.
6. Display a message on the screen that tells the amount of money earned. The message
must include the result of the calculation performed in Step 5.
Collectively, these instructions are called an algorithm. An algorithm is a set of well-
de ned steps for performing a task or solving a problem. Notice these steps are sequen-
tially ordered. Step 1 should be performed before Step 2, and so forth. It is important that
these instructions be performed in their proper sequence.
Although you and I might easily understand the instructions in the pay-calculating algo-
rithm, it is not ready to be executed on a computer. A computer s CPU can only process
instructions that are written in machine language. If you were to look at a machine lan-
guage program, you would see a stream of binary numbers (numbers consisting of only 1s
and 0s). The binary numbers form machine language instructions, which the CPU inter-
prets as commands. Here is an example of what a machine language instruction might
look like:
1011010000000101
As you can imagine, the process of encoding an algorithm in machine language is very
tedious and dif cult. In addition, each different type of CPU has its own machine lan-
guage. If you wrote a machine language program for computer A and then wanted to run
it on computer B, which has a different type of CPU, you would have to rewrite the pro-
gram in computer B s machine language.
Programming languages, which use words instead of numbers, were invented to ease the task
of programming. A program can be written in a programming language, such as C++, which
is much easier to understand than machine language. Programmers save their programs in
text les, and then use special software to convert their programs to machine language.
1.3 Programs and Programming Languages 9
Program 1-1 shows how the pay-calculating algorithm might be written in C++.
The Program Output with Example Input shows what the program will display on the
screen when it is running. In the example, the user enters 10 for the number of hours
worked and 15 for the hourly pay rate. The program displays the earnings, which are $150.
N O TE: The line numbers that are shown in Program 1-1 are not part of the program.
This book shows line numbers in all program listings to help point out speci c parts of
the program.
Program 1-1
Programming Languages
In a broad sense, there are two categories of programming languages: low-level and
high-level. A low-level language is close to the level of the computer, which means it
resembles the numeric machine language of the computer more than the natural lan-
guage of humans. The easiest languages for people to learn are high-level languages.
They are called high-level because they are closer to the level of human-readability
than computer-readability. Figure 1-5 illustrates the concept of language levels.
Many high-level languages have been created. Table 1-1 lists a few of the well-known ones.
In addition to the high-level features necessary for writing applications such as payroll
systems and inventory programs, C++ also has many low-level features. C++ is based on
10 Chapter 1 Introduction to Computers and Programming
Figure 1-5
Table 1-1
Language Description
BASIC Beginners All-purpose Symbolic Instruction Code. A general programming language
originally designed to be simple enough for beginners to learn.
FORTRAN Formula Translator. A language designed for programming complex mathematical
algorithms.
COBOL Common Business-Oriented Language. A language designed for business applications.
Pascal A structured, general-purpose language designed primarily for teaching programming.
C A structured, general-purpose language developed at Bell Laboratories. C offers both
high-level and low-level features.
C++ Based on the C language, C++ offers object-oriented features not found in C. Also
invented at Bell Laboratories.
C# Pronounced C sharp. A language invented by Microsoft for developing applications
based on the Microsoft .NET platform.
Java An object-oriented language invented at Sun Microsystems. Java may be used to
develop programs that run over the Internet, in a Web browser.
JavaScript JavaScript can be used to write small programs that run in Web pages. Despite its name,
JavaScript is not related to Java.
Python Python is a general purpose language created in the early 1990s. It has become popular
in both business and academic applications.
Ruby Ruby is a general purpose language that was created in the 1990s. It is increasingly
becoming a popular language for programs that run on Web servers.
Visual A Microsoft programming language and software development environment that
Basic allows programmers to quickly create Windows-based applications.
1.3 Programs and Programming Languages 11
the C language, which was invented for purposes such as writing operating systems and
compilers. Since C++ evolved from C, it carries all of C s low-level capabilities with it.
C++ is popular not only because of its mixture of low- and high-level features, but also
because of its portability. This means that a C++ program can be written on one type of
computer and then run on many other types of systems. This usually requires the pro-
gram to be recompiled on each type of system, but the program itself may need little or
no change.
NO TE: Programs written for speci c graphical environments often require signi cant
changes when moved to a different type of system. Examples of such graphical
environments are Windows, the X-Window System, and the Mac OS operating system.
Figure 1-6
#include <iostream>
using namespace std;
Preprocessor
int main()
{
cout<<"Hello World\n";
Modified return 0;
Source Code }
Compiler
Object Code
Linker
Executable Code
Appendix G explains how compiling works in .Net. You can download Appendix G from
the book s companion Web site at www.pearsonhighered.com/gaddis.
Checkpoint
www.myprogramminglab.com
Language: English
THE
UNIVERSITY OF OXFORD
Epochs of Church
History.
Edited by MANDELL CREIGHTON, D.D., LL.D.,
BISHOP OF LONDON.
OF THE
UNIVERSITY OF OXFORD
BY THE
FOURTH IMPRESSION
PAGE
eface v
CHAPTER I.
THE RISE OF THE UNIVERSITY.
thical origin of the University—Early Schools of Oxford—
Intellectual revival of the twelfth century—Lectures of Vacarius,
and first germs of the University—Connection of Oxford with the
University of Paris—Recognition of the scholars by the Papal 1
Legate after the riot of 1209—Office of Chancellor—University
chests, and sources of revenue in the thirteenth century—Rise
of Halls—Early University charters
CHAPTER II.
THE EARLY COLLEGES.
e of Colleges—Foundation of University and Balliol—Foundation
of Merton College—Merton College, Statutes of, 1274—Social
position, manners, and academical life of early students 15
—‘Chamber-dekyns’—Street brawls and disorders—Superiority
of colleges in discipline and tuition
CHAPTER III.
PROGRESS OF THE UNIVERSITY IN THE
FOURTEENTH CENTURY.
ope in the fourteenth century—Social condition of the University 27
—Intellectual vigour of the University—Foundation of Exeter,
Oriel, Queen’s, and Canterbury Colleges—Foundation of New
College—European influence of Oxford in the fourteenth
century—Rise of Wyclif—Career of Wyclif—Feud between
Northern and Southern ‘nations’—Early secessions to
Cambridge and Northampton—Secession to Stamford in 1333
—Growth of the proctorial authority—Concession by the Pope
of freedom in the election of the Chancellor
CHAPTER IV.
CONFLICTS BETWEEN THE UNIVERSITY AND THE CITY.
yal award of 1290—Riot of 1297 and agreement of 1298—Great
riot of 1354—Interdict and penance—New charter granted by 43
the King
CHAPTER V.
THE MONKS AND FRIARS AT OXFORD.
nedictines and Augustinians—Rise of Mendicant Orders—
Claustral schools—Migration from Paris and influence of Robert
48
Grostete—Position of the friars at Oxford, and University
statutes against them—Intervention of the Pope and the King
CHAPTER VI.
THE UNIVERSITY IN THE FIFTEENTH CENTURY.
cline in numbers and studies—University delegates at the
Councils of Constance and Basle—Foundation of Lincoln and
All Souls’ Colleges—Extension of University buildings; the
Divinity School and the Bodleian Library—Final organisation of 55
mediæval lectures and examinations—University curriculum—
Statute of 1431, regulating ‘inception’—Duties of regent
masters—Residence for degrees in the higher faculties
CHAPTER VII.
THE RENAISSANCE, THE REFORMATION, AND
THE TUDOR PERIOD.
vival of academical life at the end of the fifteenth century— 68
Checked by the Reformation—Pioneers of the new learning at
Oxford—Erasmus, More, Colet, Grocyn, and Linacre—
Foundation of Corpus Christi College by Bishop Fox—Greeks
and Trojans—Cardinal Wolsey and the foundation of Christ
Church—Action of the University on the questions of the
Divorce and the Royal Supremacy—Compliance of the
University rewarded by royal favour—The first effects of the
Reformation injurious to the University—Iconoclastic Visitation
under Edward VI.—Leniency towards colleges—Reaction under
Mary. Martyrdom of Ridley, Latimer, and Cranmer—Visitation
and reforms of Cardinal Pole—Foundation of Trinity and St.
John’s Colleges
CHAPTER VIII.
REIGN OF ELIZABETH AND CHANCELLORSHIP
OF LEICESTER.
tation under Elizabeth and policy of Archbishop Parker—
Chancellorship of Leicester—Changes in the government of the
University—Leicester’s administration of the University—
Depression of intellectual life in the University—Encouragement
87
of study by Elizabeth, and foundation of the Bodleian Library—
Increasing refinement of academical life—Queen Elizabeth’s
two visits to Oxford—Pestilences and disturbances in the
sixteenth century
CHAPTER IX.
THE UNIVERSITY UNDER JAMES I.
e University patronised by James I.—James I.’s attitude towards
the University and the Church—Rise and influence of Laud—
100
Completion of the ‘Schools,’ and foundation of Wadham and
Pembroke Colleges
CHAPTER X.
THE UNIVERSITY UNDER CHARLES I. AND LAUD.
liament at Oxford—Chancellorship of Laud—Compilation of 107
Laudian statutes—Main provisions of the Laudian statutes—
Studies and examinations under the Laudian statutes—
Services of Laud to the University—Last five years of Laud’s
chancellorship—Eminent members of the University in the
generation preceding the Civil Wars—University life in the
generation preceding the Civil Wars
CHAPTER XI.
THE UNIVERSITY DURING THE CIVIL WARS AND THE
SIEGE OF OXFORD.
e University sides with the King and the Church—The Commons
issue an order for the University—Contributions for the King’s
service, and first occupation of Oxford by Parliamentary troops
—Oxford becomes the royal head-quarters—Aspect of the
122
University during the Queen’s residence—The last two years of
the civil war—Siege of Oxford, and proposals of Fairfax
guaranteeing University privileges—Surrender of Oxford, and
subsequent condition of the University
CHAPTER XII.
THE PARLIAMENTARY VISITATION AND THE
COMMONWEALTH.
asures preparatory to the Visitation—Appointment of the Visitors
and the Standing Committee of Parliament—Early proceedings
of the Visitors, and suppression of resistance from the
University—Visitation of colleges. Submissions and expulsions
138
—Reception of Fairfax and Cromwell—Second Board of
Visitors—Third Board of Visitors, and conclusion of the
Visitation—State of the University on the recovery of its
independence
CHAPTER XIII.
THE PERIOD BETWEEN THE RESTORATION AND
THE REVOLUTION.
e Restoration and new Visitation of the University—Extension of
University buildings. Sheldonian Theatre—Growth of æsthetic
tastes and social refinement—First visit of Charles II.—Second
visit of Charles II. Parliament assembled and dissolved at
151
Oxford—Doctrine of passive resistance adopted by the
University. Expulsion of Locke—Conduct of the University on
the outbreak of Monmouth’s rebellion. James II.’s treatment of
Magdalen College
CHAPTER XIV.
UNIVERSITY POLITICS BETWEEN THE REVOLUTION
AND THE ACCESSION OF GEORGE III.
tude of the University towards the Revolution. Visit of William III.
—Origin of Oxford Jacobitism. Visit of Queen Anne—Popularity
of Sacheverell. Position of the Whig minority—Jacobite
demonstrations. A troop of horse sent to Oxford—The
162
Constitution Club. Government scheme for reforming the
University—Gradual decline of Jacobitism in Oxford during the
reign of George II.—Revival of loyalty after the accession of
George III.—His visits to Oxford
CHAPTER XV.
UNIVERSITY STUDIES IN THE EIGHTEENTH CENTURY.
cay of University education in the eighteenth century—
Contemporary evidence—Decline in numbers and dearth of
174
eminence in science and literature—Counter-evidence showing
that education and learning were not wholly neglected
CHAPTER XVI.
THE UNIVERSITY DURING THE REIGNS OF GEORGE III.
AND GEORGE IV.
gnation of University legislation in the eighteenth century— 183
Statutes affecting the University—Political sympathies of the
University after the outbreak of the French Revolution—
Accessions to professoriate in the eighteenth century—
Architectural improvements—Effects of the French war upon
the University.—Opposition to reforms—Reception of the Allied
Sovereigns.—Abolition of the Mayor’s Oath
CHAPTER XVII.
OXFORD STUDIES AND EXAMINATIONS IN THE
NINETEENTH CENTURY.
amination statute of 1800, and later amendments—Examination
statute of 1850, and later amendments—University
Commission of 1850—Act of 1854 and new College
Ordinances—Effect of these reforms—Abolition of University 191
tests—Local examinations, and board for examination of public
schools—Commission of inquiry (1872) and Act of 1876—
Commission of 1877—Character of last reforms
CHAPTER XVIII.
THE NEO-CATHOLIC REVIVAL, KNOWN AS THE ‘OXFORD
MOVEMENT.’
aracter of the ‘Oxford Movement’—A reaction against the rising
tide of Liberalism—Oriel the centre of the Movement—John
Henry Newman—Origin of ‘Tracts for the Times’—Association
formed—Newman assumes the lead—Spread and objects of
the movement.—Publication of Tract XC.—Collapse of 204
Tractarianism, and secession of Newman—The ‘Hampden
Controversy’—Proceedings against Pusey and Ward—Effect of
the ‘Oxford Movement’—Controversy on the endowment of the
Greek Professorship.—Defeat of Mr. Gladstone in 1865
CHAPTER XIX.
THE UNIVERSITY IN 1886.
gn of Queen Victoria—State of the University on the Queen’s
accession—Influence of recent changes—Present character of 217
the University
DEX 223
THE UNIVERSITY OF OXFORD.
CHAPTER I.
THE RISE OF THE UNIVERSITY.
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookfinal.com