Starting Out with C++ - From Control Structures through Objects 9th Edition Tony Gaddis download
Starting Out with C++ - From Control Structures through Objects 9th Edition Tony Gaddis download
https://ebookmeta.com/product/starting-out-with-c-from-control-
structures-through-objects-9th-edition-tony-gaddis/
https://ebookmeta.com/product/starting-out-with-java-from-
control-structures-through-objects-7th-edition-tony-gaddis/
https://ebookmeta.com/product/starting-out-with-visual-c-5th-
edition-tony-gaddis/
https://ebookmeta.com/product/starting-out-with-visual-basic-8th-
edition-tony-gaddis/
https://ebookmeta.com/product/mastering-law-studies-and-law-exam-
techniques-richard-krever/
Decades of Crisis Central and Eastern Europe Before
World War II Ivan T. Berend
https://ebookmeta.com/product/decades-of-crisis-central-and-
eastern-europe-before-world-war-ii-ivan-t-berend/
https://ebookmeta.com/product/a-dyslexic-learns-to-read-by-
powerlifting-1st-edition-charlie-marino/
https://ebookmeta.com/product/art-and-architectural-traditions-
of-india-and-iran-commonality-and-diversity-1st-edition-nasir-
raza-khan/
https://ebookmeta.com/product/desktop-guide-to-keynotes-and-
confirmatory-symptoms-1st-edition-unknown/
https://ebookmeta.com/product/bolla-1st-edition-pajtim-statovci-
david-hackston/
A Study in Stone 1st Edition Michael Campling
https://ebookmeta.com/product/a-study-in-stone-1st-edition-
michael-campling/
GLOBAL
EDITION
C++
From Control Structures through Objects
NINTH EDITION
Tony Gaddis
Digital Resources for Students
Your new textbook provides 12-month access to digital resources that may include
VideoNotes (step-by-step video tutorials on programming concepts), source code, web
chapters, quizzes, and more. Refer to the preface in the textbook for a detailed list of
resources.
Follow the instructions below to register for the Companion Website for Tony Gaddis’
Starting Out with C++ from Control Structures through Objects, Ninth Edition,
Global Edition.
1. Go to www.pearsonglobaleditions.com/gaddis
2. Enter the title of your textbook or browse by author name.
3. Click Companion Website.
4. Click Register and follow the on-screen instructions to create a login name
and password.
ISSGDS-SPADA-BAUTH-SKEAN-FIERI-BALES
Use the login name and password you created during registration to start using the
online resources that accompany your textbook.
IMPORTANT:
This prepaid subscription does not include access to MyProgrammingLab, which is
available at www.myprogramminglab.com for purchase.
This access code can only be used once. This subscription is valid for 12 months upon
activation and is not transferable.
C++
From Control Structures
through Objects
NINTH EDITION
GLOBAL EDITION
This page intentionally left blank
STARTING OUT WITH
C++
From Control Structures
through Objects
NINTH EDITION
GLOBAL EDITION
Tony Gaddis
Haywood Community College
Credits and acknowledgments borrowed from other sources and reproduced, with permission, appear on the
Credits page in the endmatter of this textbook.
The right of Tony Gaddis to be identified as the author of this work has been asserted by him in accordance
with the Copyright, Designs and Patents Act 1988.
Authorized adaptation from the United States edition, entitled Starting Out with C++: From Control
Structures through Objects, 9th Edition, ISBN 978-0-13-449837-9 by Tony Gaddis, published by Pearson
Education © 2018.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted
in any form or by any means, electronic, mechanical, photocopying, recording or otherwise, without either
the prior written permission of the publisher or a license permitting restricted copying in the United Kingdom
issued by the Copyright Licensing Agency Ltd, Saffron House, 6–10 Kirby Street, London EC1N 8TS.
All trademarks used herein are the property of their respective owners. The use of any trademark in this text
does not vest in the author or publisher any trademark ownership rights in such trademarks, nor does the use
of such trademarks imply any affiliation with or endorsement of this book by such owners.
10 9 8 7 6 5 4 3 2 1
Preface 17
CHAPTER 1 Introduction to Computers and Programming 33
CHAPTER 2 Introduction to C++ 59
CHAPTER 3 Expressions and Interactivity 117
CHAPTER 4 Making Decisions 183
CHAPTER 5 Loops and Files 263
CHAPTER 6 Functions 337
CHAPTER 7 Arrays and Vectors 413
CHAPTER 8 Searching and Sorting Arrays 495
CHAPTER 9 Pointers 535
CHAPTER 10 Characters, C-Strings, and More about the string Class 559
CHAPTER 11 Structured Data 645
CHAPTER 12 Advanced File Operations 697
CHAPTER 13 Introduction to Classes 751
CHAPTER 14 More about Classes 849
CHAPTER 15 Inheritance, Polymorphism, and Virtual Functions 939
CHAPTER 16 Exceptions and Templates 1021
CHAPTER 17 The Standard Template Library 1061
CHAPTER 18 Linked Lists 1155
CHAPTER 19 Stacks and Queues 1197
CHAPTER 20 Recursion 1255
CHAPTER 21 Binary Trees 1289
Preface 17
7
8 Contents
CHAPTER 10 Characters, C-Strings, and More about the string Class 589
10.1 Character Testing 589
10.2 Character Case Conversion 593
10.3 C-Strings 596
10.4 Library Functions for Working with C-Strings 600
10.5 String/Numeric Conversion Functions 611
10.6 Focus on Software Engineering: Writing Your Own
C-String-Handling Functions 617
10.7 More about the C++ string Class 623
10.8 Focus on Problem Solving and Program Design: A Case Study 635
Review Questions and Exercises 636
Programming Challenges 639
"Well, then, here's for her counsel," said the jester, laying his
finger on his brow:--
"Pretty Mistress Bertha wouldn't thank him if she could hear that,"
said Seckendorf, apart to his fellow-knight.
"Good faith! but little," answered the other; "your old man is
worse to deal with than your young one, for he is as weak in the wit
as in the hams, and his brain, like a worn horse-trough, is ever
leaking with watery talk.
The Count's cheek had turned very pale, and Ferdinand's eye was
seen wandering round the hall, as if expecting some strange sight
suddenly to present itself.
"In truth, I know not whence these sounds come," answered the
Count, after a moment's pause for consideration; and he then
added, seeing that any further attempt at concealment would be
vain, "It is no ordinary place, this castle of Ehrenstein, my noble
friend. We have strange sights, and strange sounds here. But what
matters it? We are not men to be frightened by unsubstantial sounds
or appearances either. I drink to your health," and filling his cup high
with wine, he said aloud--the music having by this time ceased, "To
Count Frederick of Leiningen!"
"Please you, my noble lord," replied the priest, whose face had
turned as white as paper, "I would rather have nothing to do with
him. There is the Abbey hard by, surely the good fathers there could
keep the place free from spirits if they liked it.--It is their business,
not mine, and as I see the lady is rising, by my troth, I will go to bed
too, for I am somewhat weary with our long marches."
"It may be better for us all to do so, too," said Count Frederick;
but his host pressed him to stay longer so earnestly, that he sat
down for a few minutes, while Adelaide and the priest retired from
the hall. The retainers of the two noblemen did not venture to follow
their own inclinations and the priest's example, but, though the Lord
of Ehrenstein pressed the wine hard upon them, all mirth was at an
end, and whispered conversations alone went on, except between
the two counts, who spoke a few words from time to time, in a
louder tone, but evidently with a great effort, and at the end of
about a quarter of an hour, during which there was no further
interruption, Count Frederick rose,--begging his entertainer to
excuse him, for retiring to rest.
All were eager to rise, and to get out of a place where none of
them felt themselves in security; but Ferdinand touched his lord's
arm, as, with a gloomy brow, he was following his guest from the
hall, saying, in a low voice, "What is to be done with all this gold and
silver, my lord? we shall never persuade the sewers to clear it away
to-night."
"I know not," answered the Count, moodily, but aloud. "You must
lock the door, or stay and watch."
"Then, good faith! I'll stay and watch with you, Sir Ferdinand,"
answered the jester; "two fools are better than one, at any time,
and one by profession and one by taste ought to be a match for a
score or two of spirits, whether they be black, white, or grey."
"Good lack!" answered the jester, "you do my wit but little justice,
youth. Who would not be a fool, when wise men do such things
every day. Better to profess folly at once, of your own good will,
than to have other men put the cap upon your head. A fool has one
great advantage over a wise man which no one will deny him--a fool
can be wise when he pleases, a wise man cannot be foolish when he
likes. Oh! the bauble for ever; I would not change my motley just
yet for a robe of miniver. But we'll watch, we'll watch, and we'll
make ourselves comfortable too. By my faith! it gets cold of nights,
or else the chilly wing of another world is flapping through this old
hall. Go, get some logs, good youth, and we'll have a fire then; with
our toes upon the andirons, and our chins in our palms. By the
beard of St. Barnabas, we'll tell old stories of strange things gone by,
till the cock shall crow before we know it. You are not afraid to leave
me with the tankards, I suppose, for, on my life, I drink fair with
every man, and have no itch for silver."
"Oh no, I do not fear," answered Ferdinand, "and I'll soon bring
logs enough for the night. A cheerful blaze will do us no harm, and I
shall be glad of your company."
Thus saying, he left the place, and from the great coffer at the
entrance of the lesser hall, he soon loaded himself with sufficient
wood, as he thought, to last the night. When he re-entered the
great hall, he found the jester walking back from the other end
towards the centre, where the fireplace stood; and as he came near,
the young man inquired, "Were you talking to yourself just now,
Herr von Narren?"
"Nay, good sooth, that were waste of words," answered the jester.
"I was peeping through yonder keyhole, and as it is a mighty ghostly
looking door, I thought I might as well tell the spirits not to disturb
us, as we had much to talk about. They took it all in good part, poor
things, and said nothing; though after all it would be but charity to
let them come and have a warm at our good fire, for it must be cold
down stairs, I fancy, and your ghost is thinly clad. Where does yon
door lead to, good youth?"
"Ha, ha! all convenient for the ghosts," said the jester, "but there
must be a number of sad Turks amongst them to make such a noise
with their atabals as they did to-night. There, you reach me down a
lamp, while I lay the sticks. Trust a fool for making a fire, if he do
not make it too large: then he may burn his own fingers, and the
house too. We will put out half the sconces, and so, we shall have
candle-light till the morning, when the sun and the tapers may wink
at each other, like merry maids upon a May-day."
The fire was soon lighted, and the suggestion regarding the
sconces carried into execution; after which, Ferdinand and the jester
drew two stools into the wide chimney, and the latter bringing the
large flagon of wine and two cups from the cross table, set the
beaker down upon the hearth, saying, "We will drink and keep our
spirits up."
"Ay, young brains are soon addled, like a pigeon's egg," answered
the jester. "And so you are Ferdinand of Altenburg?"
"You are a bold man," said his companion, "to give me such an
answer."
"If you know yourself, you are the first man that ever did," replied
the jester. "Your father was a proper man."
"Oh, dear no, not at all," said the Herr von Narren, "but my uncle
Frederick told us so at supper. I knew your grand-father and your
great-grandfather, and I was distantly related to his great-
grandfather; for as Adam was the first of my ancestors, and all his
race sprang from Eve, there was some connection between us,
either by blood or matrimony--Do you remember your father?"
"No," answered Ferdinand, "I was but a mere boy when he died."
"Ay, then you were not long acquainted," said the jester. "I
remember mine quite well, and how he used to tickle me with his
beard--that's longer ago than you recollect, or than you could if you
would, for to ask you for a long memory in your short life, would be
like putting a gallon of wine into a pint stoup--But I'll tell you a story,
cousin."
"A little of all, a little of all, cousin," answered the jester. "It's a
Saturday's stew, containing fragments of all things rich and rare,
with a sauce of mine own composing. Now listen and you shall hear.
Once upon a time there was a prince--we'll call him prince for want
of a better name; without offence too, for a prince may be a
gentleman sometimes--well, this prince lived at ease in his own land-
-for you see he had neither wife nor child to vex him--and a very
merry prince he was. Well might he be so, too, for everybody did
just what he liked, and he drank the best wine and ate the best
meat, and slept upon good goose-feathers which he had not the
trouble of plucking; and then, moreover, he had a jester who was fit
to make any heart gay. Besides this jester, he had a brother, a wise
man and a thoughtful, full of all sorts of learning; for they wished to
make a bishop of him, but he loved the sword better than the coif,
and all he learned in the convent was Latin and Greek, and reading
and writing, and Aristotle, and Duns Scotus, and to love nobody
better than himself."
"Well, the prince loved his brother very much, and they lived
together in the same castle, and passed their time pleasantly; they
hunted together, and they made a little war, and then they made a
little peace; and while the men at arms played at mutton-bones in
the court-yard, the two lords played at chess in the hall--and I can
tell you, that though the brother, won the first game, the prince won
the second, and the jester stood by and laughed. Merrily passed, the
time, and if men would but be contented in this world, life would be
like a summer day, but the brother was always urging the prince to
this war or that, for the glory of their house, as he called it; and
sometimes he went himself, and sometimes he stayed at home to
take care of the castle, while the prince followed his advice; and
then the brother one day thought it would be a good thing for the
prince to go and visit Jerusalem, and that it would be honourable, as
he knew something of hard blows and of leading armies, to help the
knights hospitallers and other sagacious men who were fighting for
the pure pleasure of the thing, to get lands which they could not
keep when they had got them. And the prince thought it a very good
plan; and as he had got a great number of chests full of money, he
went away to sow it in the fields of Syria, and to see if it would grow
there. As he had a multitude of stout young men, too, who always
required bleeding in the summer time, he took them with him, but
as his brother was of a cold constitution, he left him at home to keep
house. Now the prince having neither wife nor child, his dear brother
was his heir."
"Before they went," continued the jester, "the brother had a good
deal of talk with some of the prince's followers, and told them how
much he loved their dear lord. He did not say that he wished him
dead; oh dear, no, that was not the way at all; but he told them all
that he would do if he were prince, and how he would promote
them, and left Sir Satan, the king of all evil imaginations, to deal
with their consciences as he might find expedient. Well, the prince
went away, and took with him his jester as his chief counsellor,
though he never took his counsel either, for if he had he would have
staid at home. But so they went on up by the Boden Sea, and then
by the Vorarlberg and through the Tyrol, kissing the Emperor's hand
at Inspruck, and then came to Venice, and there they had an
audience of the Duke; and at Venice they staid a long time, for there
was a fair Venetian lady that the prince loved passing well--" and the
jester paused, and gazed thoughtfully into the fire for several
moments.
"This was of course the traitor who murdered his lord," exclaimed
Ferdinand, who had listened with ever-growing interest.
"Oh dear, no," replied the jester; "his friends the Moslem kept
him, but thought he would be safer in two pieces, and so they
separated his head from his shoulders."
Ferdinand's teeth were set hard, and his hands clasped tight
together as the jester's story ended, and for a moment or two he did
not speak; but at length he inquired, "And how long was it ago that
the good lord fell?"
"Ah, who have we here?" cried the jester. "Some of our friends
from over the sea, I suppose;" but no one appeared, and all was
silent. Both the watchers rose, and gazed for a minute or two
towards the door; Ferdinand grasping the cross of his sword, but the
jester showing no sign either of alarm or surprise.
"I should think from the tale you have told," answered Ferdinand,
"that you know your way right well without guidance. But I will go
with you, whatever is there--I have been once, and will not be
stopped from going again."
Thus saying, he led the way to the door, and entered the long
narrow passage, Ferdinand following, and each carrying a lamp. The
jester's young companion, though busied with many other thoughts,
watched his movements closely, in order to obtain a confirmation or
refutation of the suspicions which his tale had excited.
"By my faith! you seem to know your way right well, Herr von
Narren," said Ferdinand, "better than I do, methinks."
"Ay, ay, folly finds the straight road, while wisdom is looking for
the short cut," answered the jester. "One can't well miss their way
when there is but one. But there seem no ghosts here, except the
spirit of Mistress Mildew, and she is very prevalent. We shall lose our
time, and get no payment for chilling our bones, if we get no better
apparition than this green slime. I would give a great deal to see a
ghost. I never met with one in all my travels."
"Perhaps you may be gratified to-night," rejoined Ferdinand, "for
here they wander, if anywhere."
"If anywhere!" exclaimed the jester, "did any one ever hear such
heretical unbelief? We know that the church supports them,
because, I suppose, the poor things are too thin and unsubstantial
to stand of themselves. However, here we are at the bottom; praised
be Heaven's mercy in not bringing us there sooner! And here is a
door. Now, marry, you and other men of shrewd wits would
doubtless be looking for another, but I take the one that stands
before me, the sunshine of my darkness teaching me that that which
is at hand is always nearer than that which is far off. Now let us see,
it should be pulled this way, by the look of the lock and the hinges,
but if it be locked, what then?" and he paused for a minute or two
seeming to consider curiously the question before he proceeded to
ascertain the fact.
"What! then you come hither often," said the jester, "no wonder
you are less afraid of haunted places than the rest."
"Bless the lad's heart!" cried the jester, "he seems to think that his
light words will stay in a fool's head for an hour. My brain is not bird-
lime, boy, to catch your fluttering things, and put them in the trap.
But now, what place is this?" and he took a step forward and looked
round, holding up the lamp in his hand.
"This is the Serf's Burial-Vault," answered Ferdinand, in a low
voice, remembering, with a sensation of awe that he could not
overcome, the strange and fearful sights which he had there beheld.
"Hold up your lamp," said the jester, in a grave tone, "I wish to
see around me."
But the darkness, as before, was too thick to be pierced for any
distance by the feeble rays of the two lamps, and the next moment,
to his surprise, the young man heard his companion demand aloud,
"Where art thou, Walter?"
Ferdinand might think it all strange, but yet the words of his
companion seemed to have a power over him which he could not
resist, and turning back he retrod his steps to the hall, where, after
having closed the door, he seated himself before the fire to wait for
the jester's return.
"I must wake you, cousin," said his companion. "For we shall soon
have Madam Morning winking at us with her old grey eye. Sleep is
better than waking for some good reasons, but it must come to an
end, coz!"
"Is it so late?" asked Ferdinand. "I thought that I had just closed
my eyes!"
"Yes, that is the blessing of youth," said the jester; "he thinks not,
either sleeping or waking. He dreams while he is waking, and forgets
while he is sleeping, and therein has he the two best gifts that man
can covet--to dream and to forget."
"I doubt not, from all I see," answered the young man, "that
there are many things you would wish to forget, were it possible."
"Hark ye, cousin," said the jester; "one thing we had both better
try to forget, to-wit, that we have been in those vaults together. I
have a secret of yours, you have one of mine. We will each keep
what we have got, and give it away to nobody, for that would be
thriftless."
"Why, what evil can I do?" asked the jester, with a smile; "what
power have I? Is the fool's bauble equal to a baron's sword? Good
faith! I will go to the wars, and turn out a great conqueror.--I intend
your lord no harm, cousin."
"Nor will it," said his companion, somewhat sternly; "if there be
justice in Heaven; but to Heaven I leave it; and in its own good time
I doubt not to see vengeance fall where it ought. What is it that you
suspect?"
His companion laughed aloud. "How thy wits jump!" he said; "but
in one way, like an ill-broken colt, they jump too far. I seek not to
avenge that Count's death; and by all that I hold sacred, I myself
will never attempt it; so let that satisfy thee, good youth."
"And yet, perhaps, I ought to inform the Count of who you are;"
replied the young man, thoughtfully.
"That you cannot do," answered the jester; "and if you believe
that the tale I told applies to your lord and his brother, you neither
will nor ought. Vipers have viper's eggs--rogues serve rogues; and
the blood in your veins would cry out against you, if you were to
make your mind the bondsman of a felon. If you think my tale is
true, quit this household in silence, for your own honour; if you do
not believe the tale to be applicable here, remain in silence. But if
you would needs speak, I will seal your lips with one word."
"Adelaide!" answered the jester, fixing his keen eyes upon him.
"Is there nothing, good youth, that you seek to conceal as well as
myself; nay, far more than I do? for I have nought to fear--you
much. I care not; but that it would sadden merry meetings, and
break off gay intercourse, if your good Count should know all that
you know, and more.--Indeed, I promise you, that ere I depart from
this neighbourhood, he shall hear the whole tale. He would less dare
to wag a finger against me, protected as I am, than jump from the
top of the keep; but I must choose my own time and my own way to
speak, and it must not be now."
"Then is his soul dirt cheap, or a very bad one," answered the
jester; "but, on my life, I believe the market price of men's souls is
half a florin; for day by day we see them sold for less. The twinkle of
a girl's eyes is current coin against such commodities; the pottle-pot
drives a thriving trade in the mart of spirits; and two small pieces of
ivory spotted with black, have nearly emptied the world's fold of its
true sheep. But there comes the morning. See the panes of glass in
the casement are looking grey, we shall soon have the sun up, red
and blear-eyed like a drunkard who has sat up all night with the
stoup. I'll hie me to bed, for my wit will want activity, and, good
faith! it is getting somewhat weak in the knees."
"It must be a heavy task to be ever ready with a jest, even when
the heart is sad," said Ferdinand.
"What! a heavy task to find light wit?" exclaimed the jester. "No,
good youth; let a man but look at life as he ought, and the burden is
easily borne. All things here are but jests; some sour, some sweet;
some light, some heavy. If we cannot laugh with, we can laugh at;
and but get your wit into a cantering habit, and he'll forget his grave
paces and trip lightly along the road. Habit, habit, habit, cousin!
everything is habit in this world. What is that makes the man eat
what the child rejects? Custom. What makes us endure a load of
clothes that Heaven never intended us to wear? Custom. Put a pair
of tawny leather shoes upon a child's bare feet, and he will stumble
over the rushes on the floor; yet, see how gaily the youth will trip
along, as if he had been born into the world booted and spurred.
The eye and the ear, the tongue and the nose, all have their habits.
Go into a strange land, and you will split your sides at the odd
dresses of the people. Stay there a year, and you will think your own
countrymen as comical. The blast of the trumpet cracks a lady's
ears; ask the knight and his war horse if ever they heard sweeter
music. Good sooth! I do believe, if men ate dirt and ashes for a
month, they would think them better than stewed ducks or a
brawn's head; and thus with me, though jesting be a sorry trade
enough when the heart is full or the stomach empty, yet, either from
lack of continence, or discretion, I began early, and now the jest
always gets the better of the lamentation, and finds vent first. But
look at the red light on the floor. It is time for night fowls to roost.
Give you good morning, cousin Ferdinand, I am away to my pallet."
CHAPTER XIII.
The morning was dull and heavy, though fully risen, when
Ferdinand of Altenburg was summoned to the Count's chamber; but
by that time he could bear the tidings to his lord that all had been
cleared away from the hall at the sacrifice of the wine which had
been left there.
"We shall not need to try them, Ferdinand," replied the Count.
"We must change our plan, good youth. We must not have our food
poisoned by doubts and fears."
The Count spoke thoughtfully, pausing when he had done; and
Ferdinand replied, "I am glad you have taken such a resolution; my
good lord. It is true, I fear these things not; but still it is high time
that something should be done to inquire into this matter, or to
remove it. You have yourself now heard, and I have seen strange
things, of which, I trust, some holy man, some priest of a good and
saintly life, may be able to free us."
"No, no," replied the Lord of Ehrenstein, "we will have no priests,
lad, nor monks either. They can do nought in this or aught else, but
in crafty policy, where the hundred-headed and perpetual monster
sets all her everlasting wits to work. I know their ways right well, for
I was bred to be one of them.--No, no! We will have no priests to
meddle and to babble here, and tell the broad world that I was
plagued with spirits at my very hearth. That were an old woman's
remedy, and I will not submit myself to such were there none other
in the world. Not so, not so will we set to work; but for the future
we will take our meals in separate parties: some in the lesser hall,
some in the two rooms on either side--but what makes you look so
dull, as if your mind were roaming to other things?--You were not
disturbed, you say?"
"Well, hie thee to bed then for a while," replied the Count; but he
was not yet satisfied; for there were signs rather of thought than of
slumber in the young man's face; and with suspicions, aroused of he
knew not well what, he resolved to watch him more carefully.
The day passed nearly without events. The whole party seemed
relieved, when they found that the haunted hall was no more to be
visited. The Count and his noble guest walked for a great part of the
morning on the battlements, in earnest conversation; the knights
and soldiers amused themselves with the sports and games of the
day in the courts and chambers, and the hour of noon brought with
it the usual meal. During the whole morning, Adelaide and Ferdinand
did not meet; and even at dinner, by the Count's arrangement, the
young man was sent to superintend another room, where a table
was spread for some of the chief officers of both households. One
glance as he passed through the hall was all that he obtained, and
he thought that Adelaide's eyes looked anxious. Count Frederick was
standing on one side of the lady, and his young follower, Martin of
Dillberg, on the other, as the lover crossed the hall; and on the face
of Dillberg there were smiles and sweet looks, which made
Ferdinand's breast feel warm with sensations he had never before
experienced. Doubt or suspicion, in regard to Adelaide herself, he
could not entertain; but yet jealousy has many stages, and
Ferdinand hated Count Frederick's follower heartily from that
moment. He felt--or fancied that they were rivals, and perhaps, in
the whole range of bitter emotions, there is none more painful than
that which we endure, when we know that even for a time a rival
has the ear of her we love. At the meal, he tried to be cheerful as
well as courteous, and though it cost him a great effort to conceal
his uneasiness, yet his manner was so pleasing to all, that he rose
high in the opinion of Count Frederick's train, and even at the table,
almost within his own hearing, comparisons were made between
him and Martin of Dillberg not very favourable to the latter.
"I love him not," said one; "I never have; and the more I see of
him the less I like him. Were he like this young squire, one could
understand our lord's favour for him."
"Ay, and his mother a devil incarnate," answered the other. "She
broke his father's heart, betrayed his honour, and ruined him; and
this youth is her very image."
"I believe so," was the reply, "but I know nought as certain. He
might have known the Count before."
"I have heard he saved your leader's life," said the young man.
"Yes, so they say," rejoined the knight. "I was not present, and
know nothing of it."
His companion smiled and shook his head, saying, "He is no great
seeker of renown, this youth. Yet he is brave after a certain fashion
too. There are some men, and he is one of them, who would risk ten
times the danger of a battle-field, to accomplish a small matter
cunningly. He seems to enjoy his own art so much, that if it costs his
life he must practise it, especially if it be to the injury of others."
The meal was drawing near its conclusion, when some noise was
heard in the adjoining hall, of a different kind from that which had
preceded, though in those days, as often at present, the hour of
dinner was a noisy one. The Count of Ehrenstein's voice could be
distinguished asking questions with angry vehemence, and every
now and then another answering, while the tones of Count Frederick
joined in from time to time even more sharply.
"Who has done it?" asked the young gentleman. "I thought such
bands had been put down."
"Oh, it is the Baron of Eppenfeld," said the sewer; "he will never
give up that trade; and his place is so strong, it will be difficult to
force him."
Thus saying, he went on, and the thoughts of all present turned
to the results that were likely to ensue from the event that had just
occurred. "Count Frederick will not be long out of the saddle,"
observed one of his attendants; "it is not well to pull the beard of an
old lion."
"I doubt we shall have enough here to right the affair," rejoined
an old soldier; "it is unlucky that one-half of the band marched on."
"Stay not an hour," replied the Count. "I would not have you, or
any of your troop, either break bread or taste wine within his gates,
till the answer is given. If he says Yes, you may refresh yourselves
and the horses. If he says No, return at once, and rest at Anweiler. If
he seeks delay, give him half an hour, and tell him such are our
express commands. Now away, good youth, to make ready. You
must all go armed."
"I will do your will to the best, my lord," answered Ferdinand, and
with a glance to the pale cheek of Adelaide, he was turning to leave
the hall, when Count Frederick called him back, and drawing him to
the window, said, in a low voice, "I would fain have you, my dear
lad, discover, if possible, how this worthy knight obtained intelligence
of the merchants' journey. I must leave the means to yourself; but I
have my reasons for the inquiry--I fear this may be a dangerous
expedition for you," he added.
"More full of danger than honour, my good lord," answered
Ferdinand. "Small chance of fair fighting: much of being caught like
a rat in a trap. But I will do my best, and have nought but to obey."
Thus saying, he left the hall, not daring to turn his eyes to
Adelaide again; and the party he left soon broke up, Count Frederick
saying he had a vow to perform at the chapel of the Virgin, and that
he would ride out to fulfil it between that hour and supper time.
"Come in," cried the young man; and Bertha appeared, with a
face half frightened, half playful.
"Your lady wishes to speak with you for a moment before you go,
Sir Scapegrace," said the girl in a low tone. "She is in the corridor
below, and all the rest are out of the way for a minute or two, so
make haste;" and without more words she hastened away, leaving
the door ajar.
"Oh, Ferdinand," she said, "I have longed to speak with you all
the morning; but the castle has been so full, that it would have been
madness to attempt it; and now you are going whence you may,
perchance, never return. At all events, you cannot be back in time to
do what is required."
"Likely enough," replied the giant; "when come you back, if they
will let you?"
"As fast as my horse can carry me," answered the young man,
and galloped on, along one of the narrow hill paths that led towards
Anweiler, with an unrivalled view of the whole Palatinate below him
on the left, and, on the right, the mountains of the Haard, with their
innumerable castles, abbeys, and monasteries, crowning every peak,
and barring every gorge. When he reached the road from Landau to
Zweibrücken, near Anweiler, instead of following it far, he turned
away again before he had gone on a quarter of a mile, in the
direction of Weissenburg, and entered a dark and gloomy looking
valley, where rocks and trees were far more plentiful than churches
or human habitations. Closing in on either side, the high hills left but
a narrow space for the dell as it wound on, till at length, at a spot
where the basin extended a little, a tall rock rose up in the centre,
covered with wood wherever the roots could find earth to bear
them, and crowned with walls and towers above. Ferdinand gave his
horse the spur, and in a few minutes more stood before the gates of
Eppenfeld.
CHAPTER XIV.
Count Frederick was the first who spoke, saying, "You do not
remember me, good father, though we have met often in early days,
and more than once some ten years ago; but I can easily forgive
your forgetfulness, for, good faith, the suns of Syria and Africa are
not the greatest beautifiers of man's person, and the change must
be somewhat rueful. You are little altered, since last I saw you; more
silver than sable in your hair now, it is true, but still the features are
the same."
"I remember you well, my good lord," replied the priest; "though
you are greatly changed, I own. Yet here is one I should remember
better, methinks; for, if my eyes deceive me not strangely, we have
met more often;" and as he spoke he laid his hand upon the jester's
arm.
"I know not which is the greatest deceiver," cried the jester, with
a laugh; "a man's eyes or his ears; the one cheats him more often,