Programming Principles and Practice Using C 3rd Edition Stroustrup pdf download
Programming Principles and Practice Using C 3rd Edition Stroustrup pdf download
https://textbookfull.com/product/programming-principles-and-
practice-using-c-3rd-edition-stroustrup/
https://textbookfull.com/product/programming-principles-and-
practice-using-c-second-edition-stroustrup/
https://textbookfull.com/product/programming-principles-and-
practice-using-c-third-edition-bjarne-stroustrup/
https://textbookfull.com/product/a-tour-of-c-3rd-edition-
stroustrup-b/
https://textbookfull.com/product/tour-of-c-a-c-in-depth-
series-3rd-edition-stroustrup/
A Tour of C++ Stroustrup
https://textbookfull.com/product/a-tour-of-c-stroustrup/
https://textbookfull.com/product/a-tour-of-c-stroustrup-2/
https://textbookfull.com/product/introduction-to-computation-and-
programming-using-python-3rd-edition-john-v-guttag/
https://textbookfull.com/product/introduction-to-computation-and-
programming-using-python-3rd-edition-john-v-guttag-2/
https://textbookfull.com/product/principles-and-practice-of-
radiation-oncology-7th-edition-edward-c-halperin/
About This eBook
ePUB is an open, industry-standard format for eBooks.
However, support of ePUB and its many features varies
across reading devices and applications. Use your device or
app settings to customize the presentation to your liking.
Settings that you can customize often include font, font size,
single or double column, landscape or portrait mode, and
figures that you can click or tap to enlarge. For additional
information about the settings and features on your reading
device or app, visit the device manufacturer’s Web site.
Many titles include programming code or configuration
examples. To optimize the presentation of these elements,
view the eBook in single-column, landscape mode and
adjust the font size to the smallest setting. In addition to
presenting code and configurations in the reflowable text
format, we have included images of the code that mimic the
presentation found in the print book; therefore, where the
reflowable format may compromise the presentation of the
code listing, you will see a “Click here to view code image”
link. Click the link to view the print-fidelity code image. To
return to the previous page viewed, click the Back button on
your device or app.
Programming: Principles
and Practice Using C++
Third Edition
Bjarne Stroustrup
ISBN-13: 978-0-13-830868-1
ISBN-10: 0-13-83086-3
First printing, May 2024
$PrintCode
Contents
Preface
1 Hello, World!
1.1 Programs
1.2 The classic first program
1.3 Compilation
1.4 Linking
1.5 Programming environments
3 Computation
3.1 Computation
3.2 Objectives and tools
3.3 Expressions
3.4 Statements
3.5 Functions
3.6 vector
3.7 Language features
4 Errors!
4.1 Introduction
4.2 Sources of errors
4.3 Compile-time errors
4.4 Link-time errors
4.5 Run-time errors
4.6 Exceptions
4.7 Avoiding and finding errors
5 Writing a Program
5.1 A problem
5.2 Thinking about the problem
5.3 Back to the calculator!
5.4 Back to the drawing board
5.5 Turning a grammar into code
5.6 Trying the first version
5.7 Trying the second version
5.8 Token streams
5.9 Program structure
6 Completing a Program
6.1 Introduction
6.2 Input and output
6.3 Error handling
6.4 Negative numbers
6.5 Remainder: %
6.6 Cleaning up the code
6.7 Recovering from errors
6.8 Variables
10 A Display Model
10.1 Why graphics?
10.2 A display model
10.3 A first example
10.4 Using a GUI library
10.5 Coordinates
10.6 Shapes
10.7 Using Shape primitives
10.8 Getting the first example to run
11 Graphics Classes
11.1 Overview of graphics classes
11.2 Point and Line
11.3 Lines
11.4 Color
11.5 Line_style
11.6 Polylines
11.7 Closed shapes
11.8 Text
11.9 Mark
11.10 Image
12 Class Design
12.1 Design principles
12.2 Shape
12.3 Base and derived classes
12.4 Other Shape functions
12.5 Benefits of object-oriented programming
17 Essential Operations
17.1 Introduction
17.2 Access to elements
17.3 List initialization
17.4 Copying and moving
17.5 Essential operations
17.6 Other useful operations
17.7 Remaining Vector problems
17.8 Changing size
17.9 Our Vector so far
21 Algorithms
21.1 Standard-library algorithms
21.2 Function objects
21.3 Numerical algorithms
21.4 Copying
21.5 Sorting and searching
Index
Preface
Damn the
torpedoes!
Full speed ahead.
– Admiral
Farragut
Previous Editions
The third edition of Programming: Principles and Practice
Using C++ is about half the size of the second edition.
Students having to carry the book will appreciate the lighter
weight. The reason for the reduced size is simply that more
information about C++ and its standard library is available
on the Web. The essence of the book that is generally used
in a course in programming is in this third edition (“PPP3”),
updated to C++20 plus a bit of C++23. The fourth part of
the previous edition (“PPP2”) was designed to provide extra
information for students to look up when needed and is
available on the Web:
Acknowledgments
Special thanks to the people who reviewed drafts of this
book and suggested many improvements: Clovis L. Tondo,
Jose Daniel Garcia Sanchez, J.C. van Winkel, and Ville
Voutilainen. Also, Ville Voutilainen did the non-trivial
mapping of the GUI/Graphics interface library to Qt, making
it portable to an amazing range of systems.
Also, thanks to the many people who contributed to the
first and second editions of this book. Many of their
comments are reflected in this third edition.
0
eiπ + 1
– Leonhard Euler
The use of CC, AA, and XX, rather than a single token in different colors, is to
help where colors are not easy to distinguish.
In addition, at the end of each chapter we offer some help to solidify what’s
learned:
Review: At the end of each chapter, you’ll find a set of review questions.
They are intended to point you to the key ideas explained in the chapter.
One way to look at the review questions is as a complement to the
exercises: the exercises focus on the practical aspects of programming,
whereas the review questions try to help you articulate the ideas and
concepts. In that, they resemble good interview questions.
Terms: A section at the end of each chapter presents the basic vocabulary
of programming and of C++. If you want to understand what people say
about programming topics and to articulate your own ideas, you should
know what each term means.
Postscript: A paragraph intended to provide some perspective for the
material presented.
In addition, we recommend that you take part in a small project (and more if
time allows for it). A project is intended to produce a complete useful program.
Ideally, a project is done by a small group of people (e.g., three people)
working together (e.g., while progressing through the later chapters of the
book). Most people find such projects the most fun and that they tie
everything together.
CC
Learning involves repetition. Our ideal is to make every important point at
least twice and to reinforce it with exercises.
Program organization
Debugging and testing
Class design
Computation
Function and algorithm design
Graphics (two-dimensional only)
Graphical user interfaces (GUIs)
Files and stream input and output (I/O)
Memory management
Design and programming ideals
The C++ standard library
Software development strategies
To keep the book lighter than the small laptop on which it is written, some
supplementary topics from the second edition are placed on the Web (§0.4.1):
Working our way through the chapters, we cover the programming techniques
called procedural programming (as with the C programming language), data
abstraction, object-oriented programming, and generic programming. The
main topic of this book is programming, that is, the ideals, techniques, and
tools of expressing ideas in code. The C++ programming language is our main
tool, so we describe many of C++’s facilities in some detail. But please
remember that C++ is just a tool, rather than the main topic of this book. This
is “programming using C++,” not “C++ with a bit of programming theory.”
Each topic we address serves at least two purposes: it presents a technique,
concept, or principle and also a practical language or library feature. For
example, we use the interface to a two-dimensional graphics system to
illustrate the use of classes and inheritance. This allows us to be economical
with space (and your time) and also to emphasize that programming is more
than simply slinging code together to get a result as quickly as possible. The
C++ standard library is a major source of such “double duty” examples –
many even do triple duty. For example, we introduce the standard-library
vector, use it to illustrate widely useful design techniques, and show many of
the programming techniques used to implement it. One of our aims is to show
you how major library facilities are implemented and how they map to
hardware. We insist that craftsmen must understand their tools, not just
consider them “magical.”
Some topics will be of greater interest to some programmers than to others.
However, we encourage you not to prejudge your needs (how would you know
what you’ll need in the future?) and at least look at every chapter. If you read
this book as part of a course, your teacher will guide your selection.
CC
We characterize our approach as “depth-first.” It is also “concrete-first” and
“concept-based.” First, we quickly (well, relatively quickly, Chapter 1 to
Chapter 9) assemble a set of skills needed for writing small practical programs.
In doing so, we present a lot of tools and techniques in minimal detail. We
focus on simple concrete code examples because people grasp the concrete
faster than the abstract. That’s simply the way most humans learn. At this
initial stage, you should not expect to understand every little detail. In
particular, you’ll find that trying something slightly different from what just
worked can have “mysterious” effects. Do try, though! Please do the drills and
exercises we provide. Just remember that early on you just don’t have the
concepts and skills to accurately estimate what’s simple and what’s
complicated; expect surprises and learn from them.
AA
We move fast in this initial phase – we want to get you to the point where
you can write interesting programs as fast as possible. Someone will argue,
“We must move slowly and carefully; we must walk before we can run!” But
have you ever watched a baby learning to walk? Babies really do run by
themselves before they learn the finer skills of slow, controlled walking.
Similarly, you will dash ahead, occasionally stumbling, to get a feel of
programming before slowing down to gain the necessary finer control and
understanding. You must run before you can walk!
XX
It is essential that you don’t get stuck in an attempt to learn “everything”
about some language detail or technique. For example, you could memorize all
of C++’s built-in types and all the rules for their use. Of course you could, and
doing so might make you feel knowledgeable. However, it would not make you
a programmer. Skipping details will get you “burned” occasionally for lack of
knowledge, but it is the fastest way to gain the perspective needed to write
good programs. Note that our approach is essentially the one used by children
learning their native language and also the most effective approach used to
learn a foreign language. We encourage you to seek help from teachers,
friends, colleagues, Mentors, etc. on the inevitable occasions when you are
stuck. Be assured that nothing in these early chapters is fundamentally
difficult. However, much will be unfamiliar and might therefore feel difficult at
first.
Later, we build on your initial skills to broaden your base of knowledge. We
use examples and exercises to solidify your understanding, and to provide a
conceptual base for programming.
AA
We place a heavy emphasis on ideals and reasons. You need ideals to guide
you when you look for practical solutions – to know when a solution is good
and principled. You need to understand the reasons behind those ideals to
understand why they should be your ideals, why aiming for them will help you
and the users of your code. Nobody should be satisfied with “because that’s
the way it is” as an explanation. More importantly, an understanding of ideals
and reasons allows you to generalize from what you know to new situations
and to combine ideas and tools in novel ways to address new problems.
Knowing “why” is an essential part of acquiring programming skills.
Conversely, just memorizing lots of poorly understood rules is limiting, a
source of errors, and a massive waste of time. We consider your time precious
and try not to waste it.
Many C++ language-technical details are banished to other sources, mostly
on the Web (§0.4.1). We assume that you have the initiative to search out
information when needed. Use the index and the table of contents. Don’t
forget the online help facilities of your compiler. Remember, though, to
consider every Web resource highly suspect until you have reason to believe
better of it. Many an authoritative-looking Web site is put up by a
programming novice or someone with something to sell. Others are simply
outdated. We provide a collection of links and information on our support Web
site: www.stroustrup.com/programming.xhtml.
Please don’t be too impatient for “realistic” examples. Our ideal example is
the shortest and simplest code that directly illustrates a language facility, a
concept, or a technique. Most real-world examples are far messier than ours,
yet do not consist of more than a combination of what we demonstrate.
Successful commercial programs with hundreds of thousands of lines of code
are based on techniques that we illustrate in a dozen 50-line programs. The
fastest way to understand real-world code is through a good understanding of
the fundamentals.
We do not use “cute examples involving cuddly animals” to illustrate our
points. We assume that you aim to write real programs to be used by real
people, so every example that is not presented as specifically language-
technical is taken from a real-world use. Our basic tone is that of professionals
addressing (future) professionals.
C++ rests on two pillars:
0.3.1 Portability
CC
It is common to write C++ to run on a variety of machines. Major C++
applications run on machines we haven’t ever heard of! We consider the use of
C++ on a variety of machine architectures and operating systems most
important. Essentially every example in this book is not only ISO Standard
C++, but also portable. By portable, we mean that we make no assumptions
about the computer, the operating system, and the compiler beyond that an
up-to-date standard-conforming C++ implementation is available. Unless
specifically stated, the code we present should work on every C++
Random documents with unrelated
content Scribd suggests to you:
The priests of England supported the anathemas pronounced by
their chief. They indulged in a thousand jeers and sarcasms against
John about the charter he had accepted:—"This is the twenty-fifth
king of England—not a king, not even a kingling—but the disgrace of
kings—a king without a kingdom—the fifth wheel of a waggon—the
last of kings, and the disgrace of his people!—I would not give a
straw for him.... Fuisti rex, nunc fex (once a king, but now a clown)."
John, unable to support his disgrace, groaned and gnashed his teeth
and rolled his eyes, tore sticks from the hedges and gnawed them
like a maniac, or dashed them into fragments on the ground.[135]
The barons, unmoved alike by the insolence of the pope and the
despair of the king, replied that they would maintain the charter.
Innocent excommunicated them. "Is it the pope's business to
regulate temporal matters?" asked they. "By what right do vile
usurers and foul simoniacs domineer over our country and
excommunicate the whole world?"
The pope soon triumphed throughout England. His
vassal John having hired some bands of RELIGION OF THE
SENSES.
adventurers from the continent, traversed at their
head the whole country from the Channel to the Forth. These
mercenaries carried desolation in their track: they extorted money,
made prisoners, burnt the barons' castles, laid waste their parks,
and dishonoured their wives and daughters.[136] The king would
sleep in a house, and the next morning set fire to it. Blood-stained
assassins scoured the country during the night, the sword in one
hand and the torch in the other, marking their progress by murder
and conflagration.[137] Such was the enthronization of popery in
England. At this sight the barons, overcome by emotion, denounced
both the king and the pope: "Alas! poor country!" they exclaimed.
"Wretched England!... And thou, O pope, a curse light upon thee!"
[138]
The curse was not long delayed. As the king was returning from
some more than usually successful foray, and as the royal waggons
were crossing the sands of the Wash, the tide rose and all sank in
the abyss.[139] This accident filled John with terror: it seemed to him
that the earth was about to open and swallow him up; he fled to a
convent, where he drank copiously of cider, and died of drunkenness
and fright.[140]
Such was the end of the pope's vassal—of his armed missionary in
Great Britain. Never had so vile a prince been the involuntary
occasion to his people of such great benefits. From his reign England
may date her enthusiasm for liberty and her dread of popery.
During this time a great transformation had been accomplished.
Magnificent churches and the marvels of religious art, with
ceremonies and a multitude of prayers and chantings dazzled the
eyes, charmed the ears, and captivated the senses; but testified also
to the absence of every strong moral and Christian disposition, and
the predominance of worldliness in the church. At the same time the
adoration of images and relics, saints, angels, and Mary the mother
of God, the worships of latria, doulia, and hyperdoulia,[141] the real
Mediator transported from the throne of mercy to the seat of
vengeance, at once indicated and kept up among the people that
ignorance of truth and absence of grace which characterize popery.
All these errors tended to bring about a reaction: and in fact the
march of the Reformation may now be said to begin.
England had been brought low by the papacy: it rose up again by
resisting Rome. Grostête, Bradwardine, and Edward III, prepared the
way for Wickliffe, and Wickliffe for the Reformation.
CHAPTER VI.
Reaction—Grostete—Principles of Reform—Contest with the
Pope—Sewal—Progress of the Nation—Opposition to the
Papacy—Conversion of Bradwardine—Grace is Supreme—
Edward III—Statutes of Provisors and Præmunire.
Thus in the first half of the fourteenth century, nearly two hundred
years before the Reformation, England appeared weary of the yoke
of Rome. Bradwardine was no more; but a man who had been his
disciple was about to succeed him, and without attaining to the
highest functions, to exhibit in his person the past and future
tendencies of the church of Christ in Great Britain. The English
Reformation did not begin with Henry VIII: the revival of the
sixteenth century is but a link in the chain commencing with the
apostles and reaching to us.
The resistance of Edward III to the papacy without
had not suppressed the papacy within. The THE BEGGING
FRIARS.
mendicant friars, and particularly the Franciscans,
those fanatical soldiers of the pope, were endeavouring by pious
frauds to monopolize the wealth of the country. "Every year," said
they, "Saint Francis descends from heaven to purgatory, and delivers
the souls of all those who were buried in the dress of his order."
These friars used to kidnap children from their parents and shut
them up in monasteries. They affected to be poor, and with a wallet
on their back, begged with a piteous air from both high and low; but
at the same time they dwelt in palaces, heaped up treasures,
dressed in costly garments, and wasted their time in luxurious
entertainments.[159] The least of them looked upon themselves as
lords, and those who wore the doctor's cap considered themselves
kings. While they diverted themselves, eating and drinking at their
well-spread tables, they used to send ignorant uneducated persons
in their place to preach fables and legends to amuse and plunder the
people.[160] If any rich man talked of giving alms to the poor and
not to the monks, they exclaimed loudly against such impiety, and
declared with threatening voices: "If you do so we will leave the
country, and return accompanied by a legion of glittering helmets."
[161] Public indignation was at its height. "The monks and priests of
Rome," was the cry, "are eating us away like a cancer. God must
deliver us or the people will perish.... Woe be to them! the cup of
wrath will run over. Men of holy church shall be despised as carrion,
as dogs shall they be cast out in open places."[162]
The arrogance of Rome made the cup run over. Pope Urban V,
heedless of the laurels won by the conqueror at Crecy and Poitiers,
summoned Edward III to recognize him as legitimate sovereign of
England, and to pay as feudal tribute the annual rent of one
thousand marcs. In case of refusal the king was to appear before
him at Rome. For thirty-three years the popes had never mentioned
the tribute accorded by John to Innocent III, and which had always
been paid very irregularly. The conqueror of the Valois was irritated
by this insolence on the part of an Italian bishop, and called on God
to avenge England. From Oxford came forth the avenger.
John Wickliffe, born in 1324, in a little village in
Yorkshire, was one of the students who attended JOHN WICKLIFFE.
the lectures of the pious Bradwardine at Merton
College. He was in the flower of his age, and produced a great
sensation in the university. In 1348, a terrible pestilence, which is
said to have carried off half the human race, appeared in England
after successively devastating Asia and the continent of Europe. This
visitation of the Almighty sounded like the trumpet of the judgment-
day in the heart of Wickliffe. Alarmed at the thoughts of eternity, the
young man—for he was then only twenty-four years old—passed
days and nights in his cell groaning and sighing, and calling upon
God to show him the path he ought to follow.[163] He found it in the
Holy Scriptures, and resolved to make it known to others. He
commenced with prudence; but being elected in 1361 warden of
Balliol, and in 1365 warden of Canterbury College also, he began to
set forth the doctrine of faith in a more energetic manner. His biblical
and philosophical studies, his knowledge of theology, his penetrating
mind, the purity of his manners, and his unbending courage,
rendered him the object of general admiration. A profound teacher,
like his master, and an eloquent preacher, he demonstrated to the
learned during the course of the week what he intended to preach,
and on Sunday he preached to the people what he had previously
demonstrated. His disputations gave strength to his sermons, and
his sermons shed light upon his disputations. He accused the clergy
of having banished the Holy Scriptures, and required that the
authority of the word of God should be re-established in the church.
Loud acclamations crowned these discussions, and the crowd of
vulgar minds trembled with indignation when they heard these
shouts of applause.
Wickliffe was forty years old when the papal arrogance stirred
England to its depths. Being at once an able politician and a fervent
Christian, he vigorously defended the rights of the crown against the
Romish aggression, and by his arguments not only enlightened his
fellow-countrymen generally, but stirred up the zeal of several
members of both houses of parliament.
The parliament assembled, and never perhaps had
it been summoned on a question which excited to THE LORDS
AGAINST THE
so high a degree the emotions of England, and PAPAL TRIBUTE.
indeed of Christendom. The debates in the House
of Lords were especially remarkable: all the arguments of Wickliffe
were reproduced. "Feudal tribute is due," said one, "only to him who
can grant feudal protection in return. Now how can the pope wage
war to protect his fiefs?"—"Is it as vassal of the crown or as feudal
superior," asked another, "that the pope demands part of our
property? Urban V will not accept the first of these titles.... Well and
good! but the English people will not acknowledge the second."
"Why," said a third, "was this tribute originally granted? To pay the
pope for absolving John.... His demand, then, is mere simony, a kind
of clerical swindling, which the lords spiritual and temporal should
indignantly oppose."—"No," said another speaker, "England belongs
not to the pope. The pope is but a man, subject to sin; but Christ is
the Lord of lords, and this kingdom is held directly and solely of
Christ alone."[164] Thus spoke the lords inspired by Wickliffe.
Parliament decided unanimously that no prince had the right to
alienate the sovereignty of the kingdom without the consent of the
other two estates, and that if the pontiff should attempt to proceed
against the king of England as his vassal, the nation should rise in a
body to maintain the independence of the crown.
To no purpose did this generous resolution excite the wrath of the
partisans of Rome; to no purpose did they assert that, by the canon
law, the king ought to be deprived of his fief, and, that England now
belonged to the pope: "No," replied Wickliffe, "the canon law has no
force when it is opposed to the word of God." Edward III made
Wickliffe one of his chaplains, and the papacy has ceased from that
hour to lay claim—in explicit terms at least—to the Sovereignty of
England.
When the pope gave up his temporal he was
desirous, at the very least, of keeping up his WICKLIFFE
BEFORE THE
ecclesiastical pretensions, and to procure the CONVOCATION.
repeal of the statutes of Præmunire and Provisors.
It was accordingly resolved to hold a conference at Bruges to treat
of this question, and Wickliffe, who had been created doctor of
theology two years before, proceeded thither with the other
commissioners in April 1374. They came to an arrangement in 1375
that the king should bind himself to repeal the penalties denounced
against the pontifical agents, and that the pope should confirm the
king's ecclesiastical presentations.[165] But the nation was not
pleased with this compromise. "The clerks sent from Rome," said the
Commons, "are more dangerous for the kingdom than Jews or
Saracens: every papal agent resident in England, and every
Englishman living at the court of Rome, should be punished with
death." Such was the language of the Good Parliament. In the
fourteenth century the English nation called a parliament good which
did not yield to the papacy.
Wickliffe, after his return to England, was presented to the rectory of
Lutterworth, and from that time a practical activity was added to his
academic influence. At Oxford he spoke as a master to the young
theologians; in his parish he addressed the people as a preacher and
as a pastor. "The Gospel," said he, "is the only source of religion.
The Roman pontiff is a mere cut-purse,[166] and, far from having the
right to reprimand the whole world, he may be lawfully reproved by
his inferiors, and even by laymen."
The papacy grew alarmed. Courtenay, son of the Earl of Devonshire,
an imperious but grave priest, and full of zeal for what he believed
to be the truth, had recently been appointed to the see of London.
In parliament he had resisted Wickliffe's patron, John of Gaunt, duke
of Lancaster, third son of Edward III., and head of the house of that
name. The bishop, observing that the doctrines of the reformer were
spreading among the people, both high and low, charged him with
heresy, and summoned him to appear before the convocation
assembled in St Paul's Cathedral.
On the 19th February, 1377, an immense crowd,
heated with fanaticism, thronged the approaches COURTENAY AND
LANCASTER.
to the church and filled its aisles, while the citizens
favourable to the reform remained concealed in their houses.
Wickliffe moved forward, preceded by Lord Percy, marshal of
England, and supported by the Duke of Lancaster, who defended
him from purely political motives. He was followed by four bachelors
of divinity, his counsel, and passed through the hostile multitude
who looked upon Lancaster as the enemy of their liberties, and upon
himself as the enemy of the church. "Let not the sight of these
bishops make you shrink a hair's-breadth in your profession of faith,"
said the prince to the doctor. "They are unlearned; and as for this
concourse of people, fear nothing, we are here to defend you."[167]
When the reformer had crossed the threshold of the cathedral, the
crowd within appeared like a solid wall; and, notwithstanding the
efforts of the earl-marshal, Wickliffe and Lancaster could not
advance. The people swayed to and fro, hands were raised in
violence, and loud hootings re-echoed through the building. At
length Percy made an opening in the dense multitude, and Wickliffe
passed on.
The haughty Courtenay, who had been commissioned by the
archbishop to preside over the assembly, watched these strange
movements with anxiety, and beheld with displeasure the learned
doctor accompanied by the two most powerful men in England. He
said nothing to the Duke of Lancaster, who at that time administered
the kingdom, but turning towards Percy observed sharply: "If I had
known, my lord, that you claimed to be master in this church, I
would have taken measures to prevent your entrance." Lancaster
coldly rejoined: "He shall keep such mastery here, though you say
nay." Percy now turned to Wickliffe, who had remained standing and
said: "Sit down and rest yourself." At this Courtenay gave way to his
anger, and exclaimed in a loud tone: "He must not sit down;
criminals stand before their judges." Lancaster, indignant that a
learned doctor of England should be refused a favour to which his
age alone entitled him (for he was between fifty and sixty) made
answer to the bishop: "My lord, you are very arrogant; take care ...
or I may bring down your pride, and not yours only, but that of all
the prelacy in England."[168]—"Do me all the harm you can," was
Courtenay's haughty reply. The prince rejoined with some emotion:
"You are insolent, my lord. You think, no doubt, you can trust on
your family ... but your relations will have trouble enough to protect
themselves." To this the bishop nobly replied: "My confidence is not
in my parents nor in any man; but only in God, in whom I trust, and
by whose assistance I will be bold to speak the truth." Lancaster,
who saw hypocrisy only in these words, turned to one of his
attendants, and whispered in his ear, but so loud as to be heard by
the bystanders: "I would rather pluck the bishop by the hair of his
head out of his chair, than take this at his hands." Every impartial
reader must confess that the prelate spoke with greater dignity than
the prince. Lancaster had hardly uttered these imprudent words
before the bishop's partizans fell upon him and Percy, and even upon
Wickliffe, who alone had remained calm.[169] The two noblemen
resisted, their friends and servants defended them, the uproar
became extreme, and there was no hope of restoring tranquillity.
The two lords escaped with difficulty, and the assembly broke up in
great confusion.
On the following day the earl-marshal having called
upon parliament to apprehend the disturbers of the RIOT.
public peace, the clerical party uniting with the
enemies of Lancaster, filled the streets with their clamour; and while
the duke and the earl escaped by the Thames, the mob collected
before Percy's house, broke down the doors, searched every
chamber, and thrust their swords into every dark corner. When they
found that he had escaped, the rioters, imagining that he was
concealed in Lancaster's palace, rushed to the Savoy, at that time
the most magnificent building in the kingdom. They killed a priest
who endeavoured to stay them, tore down the ducal arms, and hung
them on the gallows like those of a traitor. They would have gone
still farther if the bishop had not very opportunely reminded them
that they were in Lent. As for Wickliffe, he was dismissed with an
injunction against preaching his doctrines.
But this decision of the priests was not ratified by the people of
England. Public opinion declared in favour of Wickliffe. "If he is
guilty," said they, "why is he not punished? If he is innocent, why is
he ordered to be silent? If he is the weakest in power, he is the
strongest in truth!" And so indeed he was, and never had he spoken
with such energy. He openly attacked the pretended apostolical
chair, and declared that the two antipopes who sat at Rome and
Avignon together made one antichrist. Being now in opposition to
the pope, Wickliffe was soon to confess that Christ alone was king of
the church; and that it is not possible for a man to be
excommunicated, unless first and principally he be excommunicated
by himself.[170]
Rome could not close her ears. Wickliffe's enemies sent thither
nineteen propositions which they ascribed to him, and in the month
of June 1377, just as Richard II, son of the Black Prince, a child
eleven years old, was ascending the throne, three letters from
Gregory XI, addressed to the king, the archbishop of Canterbury,
and the university of Oxford, denounced Wickliffe as a heretic, and
called upon them to proceed against him as against a common thief.
The archbishop issued the citation: the crown and the university
were silent.
On the appointed day, Wickliffe, unaccompanied by
either Lancaster or Percy, proceeded to the WICKLIFFE AT
LAMBETH.
archiepiscopal chapel at Lambeth. "Men expected
he should be devoured," says an historian; "being brought into the
lion's den."[171] But the burgesses had taken the prince's place. The
assault of Rome had aroused the friends of liberty and truth in
England. "The pope's briefs," said they, "ought to have no effect in
the realm without the king's consent. Every man is master in his own
house."
The archbishop had scarcely opened the sitting, when Sir Louis
Clifford entered the chapel, and forbade the court, on the part of the
queen-mother, to proceed against the reformer. The bishops were
struck with a panic-fear: "they bent their heads," says a Roman-
catholic historian, "like a reed before the wind."[172] Wickliffe retired
after handing in a protest. "In the first place," said he, "I resolve
with my whole heart, and by the grace of God, to be a sincere
Christian; and, while my life shall last, to profess and defend the law
of Christ so far as I have power."[173] Wickliffe's enemies attacked
this protest, and one of them eagerly maintained that whatever the
pope ordered should be looked upon as right. "What!" answered the
reformer; "the pope may then exclude from the canon of the
scriptures any book that displeases him, and alter the Bible at
pleasure?" Wickliffe thought that Rome, unsettling the grounds of
infallibility, had transferred it from the Scriptures to the pope, and
was desirous of restoring it to its true place, and re-establishing
authority in the church on a truly divine foundation.
A great change was now taking place in the reformer. Busying
himself less about the kingdom of England, he occupied himself
more about the kingdom of Christ. In him the political phasis was
followed by the religious. To carry the glad tidings of the Gospel into
the remotest hamlets, was now the great idea which possessed
Wickliffe. If begging friars (said he) stroll over the country, preaching
the legends of saints and the history of the Trojan war, we must do
for God's glory what they do to fill their wallets, and form a vast
itinerant evangelization to convert souls to Jesus Christ. Turning to
the most pious of his disciples, he said to them: "Go and preach, it is
the sublimest work; but imitate not the priests whom we see after
the sermon sitting in the ale-houses, or at the gaming-table, or
wasting their time in hunting. After your sermon is ended, do you
visit the sick, the aged, the poor, the blind, and the lame, and
succour them according to your ability." Such was the new practical
theology which Wickliffe inaugurated—it was that of Christ himself.
The "poor priests," as they were called, set off
barefoot, a staff in their hands, clothed in a coarse PREACHING AND
PERSECUTION.
robe, living on alms, and satisfied with the plainest
food. They stopped in the fields near some village, in the
churchyards, in the market-places of the towns, and sometimes in
the churches even.[174] The people, among whom they were
favourites, thronged around them, as the men of Northumbria had
done at Aidan's preaching. They spoke with a popular eloquence
that entirely won over those who listened to them. Of these
missionaries none was more beloved than John Ashton. He might be
seen wandering over the country in every direction, or seated at
some cottage hearth, or alone in some retired crossway, preaching
to an attentive crowd. Missions of this kind have constantly revived
in England at the great epochs of the church.
The "poor priests" were not content with mere polemics: they
preached the great mystery of godliness. "An angel could have made
no propitiation for man," one day exclaimed their master Wickliffe;
"for the nature which has sinned is not that of the angels. The
mediator must needs be a man; but every man being indebted to
God for every thing that he is able to do, this man must needs have
infinite merit, and be at the same time God."[175]
The clergy became alarmed, and a law was passed commanding
every king's officer to commit the preachers and their followers to
prison.[176] In consequence of this, as soon as the humble
missionary began to preach, the monks set themselves in motion.
They watched him from the windows of their cells, at the street-
corners, or from behind a hedge, and then hastened off to procure
assistance. But when the constables approached, a body of stout
bold men stood forth, with arms in their hands, who surrounded the
preacher, and zealously protected him against the attacks of the
clergy. Carnal weapons were thus mingled with the preachings of the
word of peace. The poor priests returned to their master: Wickliffe
comforted them, advised with them, and then they departed once
more. Every day this evangelization reached some new spot, and the
light was thus penetrating into every quarter of England, when the
reformer was suddenly stopped in his work.
Wickliffe was at Oxford in the year 1379, busied in
the discharge of his duties as professor of divinity, WICKLIFFE'S
PROPHECY.
when he fell dangerously ill. His was not a strong
constitution; and work, age, and above all persecution had
weakened him. Great was the joy in the monasteries; but for that
joy to be complete, the heretic must recant. Every effort was made
to bring this about in his last moments.
The four regents, who represented the four religious orders,
accompanied by four aldermen, hastened to the bedside of the dying
man, hoping to frighten him by threatening him with the vengeance
of Heaven. They found him calm and serene. "You have death on
your lips," said they; "be touched by your faults, and retract in our
presence all that you have said to our injury." Wickliffe remained
silent, and the monks flattered themselves with an easy victory. But
the nearer the reformer approached eternity, the greater was his
horror of monkery. The consolation he had found in Jesus Christ had
given him fresh energy. He begged his servant to raise him on his
couch. Then feeble and pale, and scarcely able to support himself,
he turned towards the friars, who were waiting for his recantation,
and opening his livid lips, and fixing on them a piercing look, he said
with emphasis: "I shall not die but live; and again declare the evil
deeds of the friars." We might almost picture to ourselves the spirit
of Elijah threatening the priests of Baal. The regents and their
companions looked at each other with astonishment. They left the
room in confusion, and the reformer recovered to put the finishing
touch to the most important of his works against the monks and
against the pope.[177]
CHAPTER VIII.
The Bible—Wickliffe's Translation—Effects of its Publication—
Opposition of the Clergy—Wickliffe's Fourth Phasis—
Transubstantiation—Excommunication—Wickliffe's Firmness
—Wat Tyler—The Synod—The condemned Propositions—
Wickliffe's Petition—Wickliffe before the Primate at Oxford—
Wickliffe summoned to Rome—His Answer—The Trialogue—
His Death—And Character—His teaching—His Ecclesiastical
Views—A Prophecy.
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.
textbookfull.com