Big C 2nd Edition Cay S. Horstmann 2024 scribd download
Big C 2nd Edition Cay S. Horstmann 2024 scribd download
com
https://ebookname.com/product/big-c-2nd-edition-cay-s-
horstmann/
OR CLICK HERE
DOWLOAD NOW
https://ebookname.com/product/big-java-early-objects-6th-edition-cay-
s-horstmann/
ebookname.com
https://ebookname.com/product/big-java-early-late-objects-5th-edition-
cay-horstmann/
ebookname.com
https://ebookname.com/product/scala-for-the-impatient-2nd-edition-cay-
s-horstmann/
ebookname.com
https://ebookname.com/product/the-unbearable-saki-the-work-of-h-h-
munro-sandie-byrne/
ebookname.com
Practical Human Resources for Public Managers A Case Study
Approach 1st Edition Nicolas A. Valcik
https://ebookname.com/product/practical-human-resources-for-public-
managers-a-case-study-approach-1st-edition-nicolas-a-valcik/
ebookname.com
https://ebookname.com/product/encyclopedia-of-health-and-behavior-1st-
edition-norman-b-anderson-editor/
ebookname.com
https://ebookname.com/product/choices-in-relationships-an-
introduction-to-marriage-and-the-family-10th-edition-david-knox/
ebookname.com
https://ebookname.com/product/economics-after-capitalism-a-guide-to-
the-ruins-and-a-road-to-the-future-wall/
ebookname.com
https://ebookname.com/product/american-passages-a-history-in-the-
united-states-volume-i-to-1877-4th-edition-edward-l-ayers/
ebookname.com
Bunga Rampai Skenario Covid 19 Abdullah Ahmad Dzikrullah
https://ebookname.com/product/bunga-rampai-skenario-covid-19-abdullah-
ahmad-dzikrullah/
ebookname.com
Why WileyPLUS for Computer Science?
ileyPLUS for Computer Science is a dynamic online environment that motivates students to spend more
W time practicing the problems and explore the material they need to master in order to succeed.
“I used the homework problems to practice before quizzes and tests. I re-did the problems
on my own and then checked WileyPLUS to compare answers.”
— Student Alexandra Leifer, Ithaca College
Select WileyPLUS
courses include LabRat,
the programming
assignment tool
allows you to choose
from hundreds of
programming exercises
to automate the
process of assigning,
completing, compiling,
testing, submitting, and
evaluating programming
assignments. When
students spend more
time practicing, they
come to class better
prepared.
All instructional
materials, including
PowerPoints,
illustrations and visual
tools, source code,
exercises, solutions and
gradebook organized in
one easy-to-use system.
Cay Horstmann
SAN JOSE STATE UNIVERSITY
Timothy A. Budd
OREGON STATE UNIVERSITY
This book was set in 10.5/12 Stempel Garamond by Publishing Services and printed and bound by R.R.
Donnelley – Crawfordsville. The cover was printed by R.R. Donnelley.
Copyright © 2009, 2005 John Wiley & Sons, Inc. 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, scanning or otherwise, except as permitted
under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written permis-
sion of the Publisher, or authorization through payment of the appropriate per-copy fee to the Copyright
Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600. Requests to
the Publisher for permission should be addressed to the Permissions Department, John Wiley and Sons, Inc.,
111 River Street, Hoboken, NJ 07030-5774, (201) 748-6011, fax (201) 748-6008.
To order books, or for customer service, please call 1-800-CALL-Wiley (225-5945).
ISBN 978-0-470-38328-5
Printed in the United States of America
10 9 8 7 6 5 4 3 2 1
Preface
students learn how to implement classes and member functions. From then on,
objects and classes are used as the natural building blocks of computer programs.
• Keep the order flexible. The book is highly modular. Do you prefer to cover arrays
before classes? Simply switch the chapters. Do you want to cover streams and
files earlier? This is not a problem. We supply a graphics library, but it is entirely
optional. We have found that students enjoy programming exercises in which
numbers and visual information reinforce each other. But you may not want to
spend class time on it. Students can read the material on their own, or you can
skip it altogether. (See Figure 1 on page viii for the chapter dependencies.)
• Offer choices for advanced and applied topics. This “Big” book contains so much
material that it would be difficult to cover every chapter, even in an ambitious
two-semester course. The core material (Part A in Figure 1) contains what is
typically covered in a one-semester introductory course: control structures,
functions, arrays, classes, inheritance, and stream I/O. The advanced material is
grouped into four parts to make it easy to choose a focus that fits your course.
N e w in This Editio n
Streamlined Core Chapters
This edition has been reorganized to make it more suitable for a course that aims to
cover advanced C++ features, data structures, or object-oriented design. The intro-
ductory material has been condensed, and the material on control structures has
been consolidated into a single chapter.
Modular Design
The advanced chapters are now grouped into four distinct parts:
• Data structures and algorithms
• Advanced C++ and the STL
• Object-oriented design
• Applications
Part B covers an introduction to data structures and algorithms, suitable for a sec-
ond-semester programming course. Part C focuses on advanced C++ and covers the
STL in detail. Part D covers object-oriented design, UML, and design patterns.
Finally, Part E (which is available on the Web) contains applied material on graphi-
cal user interface programming, databases, and XML that you may find useful as a
capstone. Except as shown in Figure 1, the parts are independent of each other.
The web-only chapters are part of the WileyPLUS eBook and may also be
downloaded from the book’s web site at www.wiley.com/college/horstmann. If you
are interested in adopting a custom print edition that incorporates portions of the
online material, please contact your local Wiley representative.
Preface vii
Contemporary C++
This book continues to focus on the modern features of the C++ standard, such as
the string class and the STL containers. This edition prepares students for the
future with a new Chapter 21 on the features of the upcoming C++0x standard
(included in Part C).
A large number of extended examples and 15 case studies show how C++ fea-
tures are used in complete and useful programs.
WileyPLUS
The first two pages of this book describe an innovative online tool for teachers and
students: WileyPLUS. WileyPLUS can be adopted with the book, or as an alterna-
tive to the printed text for about half the cost of print. WileyPLUS integrates all of
the instructor and student web resources into an online version of this text. For
more information and a demo, please visit the web site listed on pages i–ii, or talk to
your Wiley representative. (To locate your local representative, visit www.wiley.com/
college and click on “Who’s My Rep”.)
A
A: Fundamentals
1. Introduction
B: Data Structures & Algorithms
C: Advanced Topics & STL
D: Object-Oriented Design 2. Numbers
E: Applications (web only) and Objects
3. Control Flow
4. Functions
6. Vectors and
5. Classes 9. Streams
Arrays
E
26. Relational
7. Pointers
Databases
8. Inheritance
B C D
14. Operator 22. Object- 25. Graphical
10. Recursion 27. XML
Overloading Oriented Design User Interfaces
Special Features
Throughout the chapters, special features set off topics for added flexibility and
easy reference. Syntax boxes highlight new syntactical constructs and their purpose.
An alphabetical list of these constructs can be found on page xxii.
Five additional features, entitled “Common Error”, “Productivity Hint”, “Qual-
ity Tip”, “Advanced Topic”, and “Random Fact”, are identified with the icons
below and set off so they don’t interrupt the flow of the main material. Some of
these are quite short; others extend over a page. Each topic is given the space that is
needed for a full and convincing explanation—instead of being forced into a one-
paragraph “tip”. You can use the tables on pages xxiv–xxxi to see the features in
each chapter and the page numbers where they can be found.
Here is a list of the special features and their icons.
• Common Errors describe the kinds of errors that students often make, with an
explanation of why the errors occur, and what to do about them. Most students
quickly discover the Common Error sections and read them on their own.
• Quality Tips explain good programming practices. Since most of them require an
initial investment of effort, these notes carefully motivate the reason behind the
advice and explain why the effort will be repaid later.
• Productivity Hints teach students how to use their tools more effectively, familiar-
izing them with tricks of the trade such as keyboard shortcuts, global search and
replace, or automation of common tasks with scripts.
x Preface
• Advanced Topics cover nonessential or more difficult material. Some of these top-
ics introduce alternative syntactical constructions that are not necessarily techni-
cally advanced. In many cases, the book uses one particular language construct
but explains alternatives as Advanced Topics. Instructors and students should
feel free to use those constructs in their own programs if they prefer them. It has,
however, been our experience that many students are grateful for the “keep it
simple” approach, because it greatly reduces the number of gratuitous decisions
they have to make.
• Random Facts provide historical and social information on computing, as
required to fulfill the “historical and social context” requirements of the ACM
curriculum guidelines, as well as capsule reviews of advanced computer science
topics.
Appendices
• Appendix A contains a style guide for use with this book. We have found it
highly beneficial to require a consistent style for all assignments. We realize that
our style may be different from yours. If you have strong feelings about a partic-
ular issue, or if this style guide conflicts with local customs, feel free to modify it.
The style guide is available in electronic form for this purpose.
• Appendices B and C contain summaries of the C++ keywords and operators.
• Appendix D lists character escape sequences and ASCII character code values.
• Appendix E documents all of the library functions and classes used in this book.
• Appendices F and G contain a discussion of binary and hexadecimal numbers,
and the C++ bit and shift operations.
• Appendix H contains a summary of the UML features that are used in this book.
• Appendix I compares C++ and Java. This appendix should be helpful to students
with a prior background in Java.
A c knowledgments
Many thanks to Dan Sayre, Lauren Sapira, Lisa Gee, and Carolyn Weisman at John
Wiley & Sons, and to the team at Publishing Services for their hard work and sup-
port for this book project. An especially deep acknowledgment and thanks to
Cindy Johnson, who, through enormous patience and attention to detail, made this
book a reality.
Several individuals assisted in the creation of the online resources for this edition.
We would like to thank Kurt Schmidt, Drexel University, and Diya Biswas, Maria
Kolakowska, and John O’Meara for a great set of lecture slides. We are grateful to
Fred Annexstein, University of Cincinnati, Steven Kollmansberger, South Puget
Sound Community College, and Gwen Walton, Florida Southern College, for their
Preface xi
contributions to the solutions. And thank you to John Russo, Wentworth Institute
of Technology, for working with us to prepare the labs that accompany the book.
We are very grateful to the many individuals who reviewed this and the prior edi-
tion of the book, made many valuable suggestions, and brought an embarrassingly
large number of errors and omissions to our attention. They include:
Charles Allison, Utah Valley State College
Vladimir Akis, California State University, Los Angeles
Richard Borie, University of Alabama, Tuscaloosa
Ramzi Bualuan, Notre Dame University
Drew Coles, Boston University
Roger DeBry, Utah Valley State College
Joseph DeLibero, Arizona State University
Martin S. Dulberg, North Carolina State University
Jeremy Frens, Calvin College
Timothy Henry, University of Rhode Island
Robert Jarman, Augusta State University
Jerzy Jaromczyk, University of Kentucky
Debbie Kaneko, Old Dominion University
Vitit Kantabutra, Idaho State University
Stan Lippman, Microsoft Corporation
Brian Malloy, Clemson University
Stephen Murrell, University of Miami
Jeffery Popyack, Drexel University
John Russo, Wentworth Institute of Technology
Kurt Schmidt, Drexel University
William Shay, University of Wisconsin, Green Bay
Joseph R. Shinnerl, University of California, Los Angeles
Deborah Silver, Rutgers University
John Sterling, Polytechnic University
Gwen Walton, Florida Southern College
Joel Weinstein, New England University
Lillian Witzke, Milwaukee School of Engineering
Our gratitude also to those who took time to tell us about their C++ course and
whose advice shaped this new edition:
Fred Annexstein, University of Cincinnati
Noah D. Barnette, Virginia Tech
Stefano Basagni, Northeastern University
xii Preface
Preface v
Special Features xxii
Chapter 1 Introduction 1
In just twice two hundred years from the date of that prophecy, we
had the Crimean war, during which the alliance of the Gallic Cock
and English Bull interfered with the political designs of the Russian
Bear. In 1856 the war was ended, and Turkey, or the Crescent,
closely escaped destruction. In the present year (1876) the most
unexpected events of a political character have just taken place, and
twice ten years have elapsed since peace was proclaimed.
Everything seems to bid fair for a fulfilment of the old prophecy; the
future will tell whether the Moslem Crescent, which seems, indeed,
to be waning, will irrevocably “wane, dissolve, and disappear,” as the
outcome of the present troubles.
In explaining away the heterodox facts which he appears to have
encountered in his pursuit of knowledge, Mr. Proctor is obliged more
than once in his work, to fall back upon these “curious coincidences.”
One of the most curious of these is stated by him in a foot-note
(page 301) as follows: “I do not here dwell on the curious
coincidence—if, indeed, Chaldean astrologers had not discovered
the ring of Saturn—that they showed the god corresponding within a
ring and triple.... Very moderate optical knowledge—such, indeed, as
we may fairly infer from the presence of optical instruments among
Assyrian remains—might have led to the discovery of Saturnal rings
and Jupiter’s moons.... Bel, the Assyrian Jupiter,” he adds, “was
represented sometimes with four star-tipped wings. But it is possible
that these are mere coincidences.”
In short, Mr. Proctor’s theory of coincidence becomes finally more
suggestive of miracle than the facts themselves. For coincidences
our friends the skeptics appear to have an unappeasable appetite.
We have brought sufficient testimony in the preceding chapter to
show that the ancients must have used as good optical instruments
as we have now. Were the instruments in possession of
Nebuchadnezzar of such moderate power, and the knowledge of his
astronomers so very contemptible, when, according to Rawlinson’s
reading of the tiles, the Birs-Nimrud, or temple of Borsippa, had
seven stages, symbolical of the concentric circles of the seven
spheres, each built of tiles and metals to correspond with the color of
the ruling planet of the sphere typified? Is it a coincidence again, that
they should have appropriated to each planet the color which our
latest telescopic discoveries show to be the real one?[434] Or is it
again a coincidence, that Plato should have indicated in the Timæus
his knowledge of the indestructibility of matter, of conservation of
energy, and correlation of forces? “The latest word of modern
philosophy,” says Jowett, “is continuity and development, but to Plato
this is the beginning and foundation of science.”[435]
The radical element of the oldest religions was essentially
sabaistic; and we maintain that their myths and allegories—if once
correctly and thoroughly interpreted, will dovetail with the most exact
astronomical notions of our day. We will say more; there is hardly a
scientific law—whether pertaining to physical astronomy or physical
geography—that could not be easily pointed out in the ingenious
combinations of their fables. They allegorized the most important as
well as the most trifling causes of the celestial motions; the nature of
every phenomenon was personified; and in the mythical biographies
of the Olympic gods and goddesses, one well acquainted with the
latest principles of physics and chemistry can find their causes, inter-
agencies, and mutual relations embodied in the deportment and
course of action of the fickle deities. The atmospheric electricity in its
neutral and latent states is embodied usually in demi-gods and
goddesses, whose scene of action is more limited to earth and who,
in their occasional flights to the higher deific regions, display their
electric tempers always in strict proportion with the increase of
distance from the earth’s surface: the weapons of Hercules and Thor
were never more mortal than when the gods soared into the clouds.
We must bear in mind that before the time when the Olympian
Jupiter was anthropomorphized by the genius of Pheidias into the
Omnipotent God, the Maximus, the God of gods, and thus
abandoned to the adoration of the multitudes, in the earliest and
abstruse science of symbology he embodied in his person and
attributes the whole of the cosmic forces. The Myth was less
metaphysical and complicated, but more truly eloquent as an
expression of natural philosophy. Zeus, the male element of the
creation with Chthonia—Vesta (the earth), and Metis (the water) the
first of the Oceanides (the feminine principles)—was viewed
according to Porphyry and Proclus as the zōŏn-ek-zōōn, the chief of
living beings. In the Orphic theology, the oldest of all, metaphysically
speaking, he represented both the potentia and actus, the
unrevealed cause and the Demiurg, or the active creator as an
emanation from the invisible potency. In the latter demiurgic capacity,
in conjunction with his consorts, we find in him all the mightiest
agents of cosmic evolution—chemical affinity, atmospheric electricity,
attraction, and repulsion.
It is in following his representations in this physical qualification
that we discover how well acquainted were the ancients with all the
doctrines of physical science in their modern development. Later, in
the Pythagorean speculations, Zeus became the metaphysical trinity;
the monad evolving from its invisible self the active cause, effect,
and intelligent will, the whole forming the Tetractis. Still later we find
the earlier Neo-platonists leaving the primal monad aside, on the
ground of its utter incomprehensibleness to human intellect,
speculating merely on the demiurgic triad of this deity as visible and
intelligible in its effects; and thus the metaphysical continuation by
Plotinus, Porphyry, Proclus, and other philosophers of this view of
Zeus the father, Zeus Poseidon, or dunamis, the son and power, and
the spirit or nous. This triad was also accepted as a whole by the
Irenæic school of the second century; the more substantial
difference between the doctrines of the Neo-platonists and the
Christians being merely the forcible amalgamation by the latter of the
incomprehensible monad with its actualized creative trinity.
In his astronomical aspect Zeus-Dionysus has his origin in the
zodiac, the ancient solar year. In Libya he assumed the form of a
ram, and is identical with the Egyptian Amun, who begat Osiris, the
taurian god. Osiris is also a personified emanation of the Father-Sun,
and himself the Sun in Taurus. The Parent-Sun being the Sun in
Aries. As the latter, Jupiter, is in the guise of a ram, and as Jupiter-
Dionysus or Jupiter-Osiris, he is the bull. This animal is, as it is well
known, the symbol of the creative power; moreover the Kabala
explains, through the medium of one of its chief expounders, Simon-
Ben-Iochai,[436] the origin of this strange worship of the bulls and
cows. It is neither Darwin nor Huxley—the founders of the doctrine of
evolution and its necessary complement, the transformation of
species—that can find anything against the rationality of this symbol,
except, perhaps, a natural feeling of uneasiness upon finding that
they were preceded by the ancients even in this particular modern
discovery. Elsewhere, we will give the doctrine of the kabalists as
taught by Simon-Ben-Iochai.
It may be easily proved that from time immemorial Saturn or
Kronos, whose ring, most positively, was discovered by the
Chaldean astrologers, and whose symbolism is no “coincidence,”
was considered the father of Zeus, before the latter became himself
the father of all the gods, and was the highest deity. He was the Bel
or Baal of the Chaldeans, and originally imported among them by the
Akkadians. Rawlinson insists that the latter came from Armenia; but
if so, how can we account for the fact that Bel is but a Babylonian
personification of the Hindu Siva, or Bala, the fire-god, the
omnipotent creative, and at the same time, destroying Deity, in many
senses higher than Brahma himself?
“Zeus,” says an Orphic hymn, “is the first and the last, the head,
and the extremities; from him have proceeded all things. He is a man
and an immortal nymph (male and female element); the soul of all
things; and the principal motor in fire; he is the sun and the moon;
the fountain of the ocean; the demiurgus of the universe; one power,
one God; the mighty creator and governor of the cosmos.
Everything, fire, water, earth, ether, night, the heavens, Metis, the
primeval architecturess (the Sophia of the Gnostics, and the Sephira
of the Kabalists), the beautiful Eros, Cupid, all is included within the
vast dimensions of his glorious body!”[437]
This short hymn of laudation contains within itself the groundwork
of every mythopœic conception. The imagination of the ancients
proved as boundless as the visible manifestations of the Deity itself
which afforded them the themes for their allegories. Still the latter,
exuberant as they seem, never departed from the two principal ideas
which may be ever found running parallel in their sacred imagery; a
strict adherence to the physical as well as moral or spiritual aspect of
natural law. Their metaphysical researches never clashed with
scientific truths, and their religions may be truly termed the psycho-
physiological creeds of the priests and scientists, who built them on
the traditions of the infant-world, such as the unsophisticated minds
of the primitive races received them, and on their own experimental
knowledge, hoary with all the wisdom of the intervening ages.
As the sun, what better image could be found for Jupiter emitting
his golden rays than to personify this emanation in Diana, the all-
illuminating virgin Artemis, whose oldest name was Diktynna, literally
the emitted ray, from the word dikein. The moon is non-luminous,
and it shines only by the reflected light of the sun; hence, the
imagery of his daughter, the goddess of the moon, and herself, Luna,
Astartè, or Diana. As the Cretan Diktynna, she wears a wreath made
of the magic plant diktamnon, or dictamnus, the evergreen shrub
whose contact is said, at the same time, to develop somnambulism
and cure finally of it; and, as Eilithyia and Juno Pronuba, she is the
goddess who presides over births; she is an Æsculapian deity, and
the use of the dictamnus-wreath, in association with the moon,
shows once more the profound observation of the ancients. This
plant is known in botany as possessing strongly sedative properties;
it grows on Mount Dicte, a Cretan mountain, in great abundance; on
the other hand, the moon, according to the best authorities on animal
magnetism, acts upon the juices and ganglionic system, or nerve-
cells, the seat from whence proceed all the nerve-fibres which play
such a prominent part in mesmerization. During childbirth the Cretan
women were covered with this plant, and its roots were administered
as best calculated to soothe acute pain, and allay the irritability so
dangerous at this period. They were placed, moreover, within the
precincts of the temple sacred to the goddess, and, if possible, under
the direct rays of the resplendent daughter of Jupiter—the bright and
warm Eastern moon.
The Hindu Brahmans and Buddhists have complicated theories on
the influence of the sun and moon (the male and female elements),
as containing the negative and positive principles, the opposites of
the magnetic polarity. “The influence of the moon on women is well
known,” write all the old authors on magnetism; and Ennemoser, as
well as Du Potet, confirm the theories of the Hindu seers in every
particular.
The marked respect paid by the Buddhists to the sapphire-stone—
which was also sacred to Luna, in every other country—may be
found based on something more scientifically exact than a mere
groundless superstition. They ascribed to it a sacred magical power,
which every student of psychological mesmerism will readily
understand, for its polished and deep-blue surface produces
extraordinary somnambulic phenomena. The varied influence of the
prismatic colors on the growth of vegetation, and especially that of
the “blue ray,” has been recognized but recently. The Academicians
quarrelled over the unequal heating power of the prismatic rays until
a series of experimental demonstrations by General Pleasonton,
proved that under the blue ray, the most electric of all, animal and
vegetable growth was increased to a magical proportion. Thus
Amoretti’s investigations of the electric polarity of precious stones
show that the diamond, the garnet, the amethyst, are -E., while the
sapphire is +E.[438] Thus, we are enabled to show that the latest
experiments of science only corroborate that which was known to the
Hindu sages before any of the modern academies were founded. An
old Hindu legend says that Brahma-Prajapâti, having fallen in love
with his own daughter, Ushâs (Heaven, sometimes the Dawn also),
assumed the form of a buck (ris’ya) and Ushâs that of a female deer
(rôhit) and thus committed the first sin.[439] Upon seeing such a
desecration, the gods felt so terrified, that uniting their most fearful-
looking bodies—each god possessing as many bodies as he desires
—they produced Bhûtavan (the spirit of evil), who was created by
them on purpose to destroy the incarnation of the first sin committed
by the Brahma himself. Upon seeing this, Brahma-
Hiranyagarbha[440] repented bitterly and began repeating the
Mantras, or prayers of purification, and, in his grief, dropped on earth
a tear, the hottest that ever fell from an eye; and from it was formed
the first sapphire.
This half-sacred, half-popular legend shows that the Hindus knew
which was the most electric of all the prismatic colors; moreover, the
particular influence of the sapphire-stone was as well defined as that
of all the other minerals. Orpheus teaches how it is possible to affect
a whole audience by means of a lodestone; Pythagoras pays a
particular attention to the color and nature of precious stones; while
Apollonius of Tyana imparts to his disciples the secret virtues of
each, and changes his jewelled rings daily, using a particular stone
for every day of the month and according to the laws of judicial
astrology. The Buddhists assert that the sapphire produces peace of
mind, equanimity, and chases all evil thoughts by establishing a
healthy circulation in man. So does an electric battery, with its well-
directed fluid, say our electricians. “The sapphire,” say the
Buddhists, “will open barred doors and dwellings (for the spirit of
man); it produces a desire for prayer, and brings with it more peace
than any other gem; but he who would wear it must lead a pure and
holy life.”[441]
Diana-Luna is the daughter of Zeus by Proserpina, who represents
the Earth in her active labor, and, according to Hesiod, as Diana
Eilythia-Lucina she is Juno’s daughter. But Juno, devoured by
Kronos or Saturn, and restored back to life by the Oceanid Metis, is
also known as the Earth. Saturn, as the evolution of Time, swallows
the earth in one of the ante-historical cataclysms, and it is only when
Metis (the waters) by retreating in her many beds, frees the
continent, that Juno is said to be restored to her first shape. The idea
is expressed in the 9th and 10th verses of the first chapter of
Genesis. In the frequent matrimonial quarrels between Juno and
Jupiter, Diana is always represented as turning her back on her
mother and smiling upon her father, though she chides him for his
numerous frolics. The Thessalian magicians are said to have been
obliged, during such eclipses, to draw her attention to the earth by
the power of their spells and incantations, and the Babylonian
astrologers and magi never desisted in their spells until they brought
about a reconciliation between the irritated couple, after which Juno
“radiantly smiled on the bright goddess” Diana, who, encircling her
brow with her crescent, returned to her hunting-place in the
mountains.
It seems to us that the fable illustrates the different phases of the
moon. We, the inhabitants of the earth, never see but one-half of our
bright satellite, who thus turns her back to her mother Juno. The sun,
the moon, and the earth are constantly changing positions with
relation to each other. With the new moon there is constantly a
change of weather; and sometimes the wind and storms may well
suggest a quarrel between the sun and earth, especially when the
former is concealed by grumbling thunder-clouds. Furthermore, the
new moon, when her dark side is turned toward us, is invisible; and it
is only after a reconciliation between the sun and the earth, that a
bright crescent becomes visible on the side nearest to the sun,
though this time Luna is not illuminated by sunlight directly received,
but by sunlight reflected from the earth to the moon, and by her
reflected back to us. Hence, the Chaldean astrologers and the
magicians of Thessaly, who probably watched and determined as
accurately as a Babinet the course of the celestial bodies, were said
by their enchantments to force the moon to descend on earth, i.e., to
show her crescent, which she could do but after receiving the
“radiant smile” from her mother-earth, who put it on after the conjugal
reconciliation. Diana-Luna, having adorned her head with her
crescent, returns back to hunt in her mountains.
As to calling in question the intrinsic knowledge of the ancients on
the ground of their “superstitious deductions from natural
phenomena,” it is as appropriate as it would be if, five hundred years
hence, our descendents should regard the pupils of Professor
Balfour Stewart as ancient ignoramuses, and himself a shallow
philosopher. If modern science, in the person of this gentleman, can
condescend to make experiments to determine whether the
appearance of the spots on the sun’s surface is in any way
connected with the potatoe disease, and finds it is; and that,
moreover, “the earth is very seriously affected by what takes place in
the sun,”[442] why should the ancient astrologers be held up as either
fools or arrant knaves? There is the same relation between natural
and judicial or judiciary astrology, as between physiology and
psychology, the physical and the moral. If in later centuries these
sciences were degraded into charlatanry by some money-making
impostors, is it just to extend the accusation to those mighty men of
old who, by their persevering studies and holy lives, bestowed an
immortal name upon Chaldea and Babylonia? Surely those who are
now found to have made correct astronomical observations ranging
back to “within 100 years from the flood,” from the top observatory of
the “cloud-encompassed Bel,” as Prof. Draper has it, can hardly be
considered impostors. If their mode of impressing upon the popular
minds the great astronomical truths differed from the “system of
education” of our present century and appears ridiculous to some,
the question still remains unanswered: which of the two systems was
the best? With them science went hand in hand with religion, and the
idea of God was inseparable from that of his works. And while in the
present century there is not one person out of ten thousand who
knows, if he ever knew the fact at all, that the planet Uranus is next
to Saturn, and revolves about the sun in eighty-four years; and that
Saturn is next to Jupiter, and takes twenty-nine and a half years to
make one complete revolution in its orbit; while Jupiter performs his
revolution in twelve years; the uneducated masses of Babylon and
Greece, having impressed on their minds that Uranus was the father
of Saturn, and Saturn that of Jupiter, considering them furthermore
deities as well as all their satellites and attendants, we may perhaps
infer from it, that while Europeans only discovered Uranus in 1781, a
curious coincidence is to be noticed in the above myths.
We have but to open the most common book on astrology, and
compare the descriptions embraced in the Fable of the Twelve
Houses with the most modern discoveries of science as to the nature
of the planets and the elements in each star, to see that without any
spectroscope the ancients were perfectly well acquainted with the
same. Unless the fact is again regarded as “a coincidence,” we can
learn, to a certain extent, of the degree of the solar heat, light, and
nature of the planets by simply studying their symbolic
representations in the Olympic gods, and the twelve signs of the
zodiac, to each of which in astrology is attributed a particular quality.
If the goddesses of our own planet vary in no particular from other
gods and goddesses, but all have a like physical nature, does not
this imply that the sentinels who watched from the top of Bel’s tower,
by day as well as by night, holding communion with the euhemerized
deities, had remarked, before ourselves, the physical unity of the
universe and the fact that the planets above are made of precisely
the same chemical elements as our own. The sun in Aries, Jupiter, is
shown in astrology as a masculine, diurnal, cardinal, equinoctial,
easterly sign, hot and dry, and answers perfectly to the character
attributed to the fickle “Father of the gods.” When angry Zeus-Akrios
snatches from his fiery belt the thunderbolts which he hurls forth
from heaven, he rends the clouds and descends as Jupiter Pluvius in
torrents of rain. He is the greatest and highest of gods, and his
movements are as rapid as lightning itself. The planet Jupiter is
known to revolve on its axis so rapidly that the point of its equator
turns at the rate of 450 miles a minute. An immense excess of
centrifugal force at the equator is believed to have caused the planet
to become extremely flattened at the poles; and in Crete the
personified god Jupiter was represented without ears. The planet
Jupiter’s disk is crossed by dark belts; varying in breadth, they
appear to be connected with its rotation on its axis, and are
produced by disturbances in its atmosphere. The face of Father
Zeus, says Hesiod, became spotted with rage when he beheld the
Titans ready to rebel.
In Mr. Proctor’s book, astronomers seem especially doomed by
Providence to encounter all kinds of curious “coincidences,” for he
gives us many cases out of the “multitude,” and even of the
“thousands of facts [sic].” To this list we may add the army of
Egyptologists and archæologists who of late have been the chosen
pets of the capricious Dame Chance, who, moreover, generally
selects “well-to-do Arabs” and other Eastern gentlemen, to play the
part of benevolent genii to Oriental scholars in difficulties. Professor
Ebers is one of the latest favored ones. It is a well-known fact, that
whenever Champollion needed important links, he fell in with them in
the most various and unexpected ways.
Voltaire, the greatest of “infidels” of the eighteenth century, used to
say, that if there were no God, people would have to invent one.
Volney, another “materialist,” nowhere throughout his numerous
writings denies the existence of God. On the contrary, he plainly
asserts several times that the universe is the work of the “All-wise,”
and is convinced that there is a Supreme Agent, a universal and
identical Artificer, designated by the name of God.[443] Voltaire
becomes, toward the end of his life, Pythagorical, and concludes by
saying: “I have consumed forty years of my pilgrimage ... seeking the
philosopher’s stone called truth. I have consulted all the adepts of
antiquity, Epicurus and Augustine, Plato and Malebranche, and I still
remain in ignorance.... All that I have been able to obtain by
comparing and combining the system of Plato, of the tutor of
Alexander, Pythagoras, and the Oriental, is this: Chance is a word
void of sense. The world is arranged according to mathematical
laws.”[444]
It is pertinent for us to suggest that Mr. Proctor’s stumbling-block is
that which trips the feet of all materialistic scientists, whose views he
but repeats; he confounds the physical and spiritual operations of
nature. His very theory of the probable inductive reasoning of the
ancients as to the subtile influences of the more remote planets, by
comparison with the familiar and potent effects of the sun and moon
upon our earth, shows the drift of his mind. Because science affirms
that the sun imparts physical heat and light to us, and the moon
affects the tides, he thinks that the ancients must have regarded the
other heavenly bodies as exerting the same kind of influence upon
us physically, and indirectly upon our fortunes.[445] And here we
must permit ourselves a digression.
How the ancients regarded the heavenly bodies is very hard to
determine, for one unacquainted with the esoteric explanation of
their doctrines. While philology and comparative theology have
begun the arduous work of analysis, they have as yet arrived at
meagre results. The allegorical form of speech has often led our
commentators so far astray, that they have confounded causes with
effects, and vice versa. In the baffling phenomenon of force-
correlation, even our greatest scientists would find it very hard to
explain which of these forces is the cause, and which the effect,
since each may be both by turns, and convertible. Thus, if we should
inquire of the physicists, “Is it light which generates heat, or the latter
which produces light?” we would in all probability be answered that it
is certainly light which creates heat. Very well; but how? did the great
Artificer first produce light, or did He first construct the sun, which is
said to be the sole dispenser of light, and, consequently, heat?
These questions may appear at first glance indicative of ignorance;
but, perhaps, if we ponder them deeply, they will assume another
appearance. In Genesis, the “Lord” first creates light, and three days
and three nights are alleged to pass away before He creates the
sun, the moon, and the stars. This gross blunder against exact
science has created much merriment among materialists. And they
certainly would be warranted in laughing, if their doctrine that our
light and heat are derived from the sun were unassailable. Until
recently, nothing has happened to upset this theory, which, for lack
of a better one, according to the expression of a preacher, “reigns
sovereign in the Empire of Hypothesis.” The ancient sun-
worshippers regarded the Great Spirit as a nature-god, identical with
nature, and the sun as the deity, “in whom the Lord of life dwells.”
Gama is the sun, according to the Hindu theology, and “The sun is
the source of the souls and of all life.”[446] Agni, the “Divine Fire,” the
deity of the Hindu, is the sun,[447] for the fire and sun are the same.
Ormazd is light, the Sun-God, or the Life-giver. In the Hindu
philosophy, “The souls issue from the soul of the world, and return to
it as sparks to the fire.”[448] But, in another place, it is said that “The
Sun is the soul of all things; all has proceeded out of it, and will
return to it,”[449] which shows that the sun is meant allegorically here,
and refers to the central, invisible sun, GOD, whose first
manifestation was Sephira, the emanation of En-Soph—Light, in
short.
“And I looked, and behold, a whirlwind came out of the north, a
great cloud, and a fire infolding itself, and a brightness was about it,”
says Ezekiel (i. 4, 22, etc.), “ ... and the likeness of a throne ... and
as the appearance of a man above upon it ... and I saw as it were
the appearance of fire and it had brightness round about it.” And
Daniel speaks of the “ancient of days,” the kabalistic En-Soph,
whose throne was “the fiery flame, his wheels burning fire.... A fiery
stream issued and came forth from before him.”[450] Like the Pagan
Saturn, who had his castle of flame in the seventh heaven, the
Jewish Jehovah had his “castle of fire over the seventh
heavens.”[451]
If the limited space of the present work would permit we might
easily show that none of the ancients, the sun-worshippers included,
regarded our visible sun otherwise than as an emblem of their
metaphysical invisible central sun-god. Moreover, they did not
believe what our modern science teaches us, namely, that light and
heat proceed from our sun, and that it is this planet which imparts all
life to our visible nature. “His radiance is undecaying,” says the Rig-
Veda, “the intensely-shining, all-pervading, unceasing, undecaying
rays of Agni desist not, neither night nor day.” This evidently related
to the spiritual, central sun, whose rays are all-pervading and
unceasing, the eternal and boundless life-giver. He the Point; the
centre (which is everywhere) of the circle (which is nowhere), the
ethereal, spiritual fire, the soul and spirit of the all-pervading,
mysterious ether; the despair and puzzle of the materialist, who will
some day find that that which causes the numberless cosmic forces
to manifest themselves in eternal correlation is but a divine
electricity, or rather galvanism, and that the sun is but one of the
myriad magnets disseminated through space—a reflector—as
General Pleasonton has it. That the sun has no more heat in it than
the moon or the space-crowding host of sparkling stars. That there is
no gravitation in the Newtonian sense,[452] but only magnetic
attraction and repulsion; and that it is by their magnetism that the
planets of the solar system have their motions regulated in their
respective orbits by the still more powerful magnetism of the sun, not
by their weight or gravitation. This and much more they may learn;
but, until then we must be content with being merely laughed at,
instead of being burned alive for impiety, or shut up in an insane
asylum.
The laws of Manu are the doctrines of Plato, Philo, Zoroaster,
Pythagoras, and of the Kabala. The esoterism of every religion may
be solved by the latter. The kabalistic doctrine of the allegorical
Father and Son, or Πατηρ and Λογος is identical with the
groundwork of Buddhism. Moses could not reveal to the multitude
the sublime secrets of religious speculation, nor the cosmogony of
the universe; the whole resting upon the Hindu Illusion, a clever
mask veiling the Sanctum Sanctorum, and which has misled so
many theological commentators.[453]
The kabalistic heresies receive an unexpected support in the
heterodox theories of General Pleasonton. According to his opinions
(which he supports on far more unimpeachable facts than orthodox
scientists theirs) the space between the sun and the earth must be
filled with a material medium, which, so far as we can judge from his
description, answers to our kabalistic astral light. The passage of
light through this must produce enormous friction. Friction generates
electricity, and it is this electricity and its correlative magnetism which
forms those tremendous forces of nature that produce in, on, and
about our planet the various changes which we everywhere
encounter. He proves that terrestrial heat cannot be directly derived
from the sun, for heat ascends. The force by which heat is effected is
a repellent one, he says, and as it is associated with positive
electricity, it is attracted to the upper atmosphere by its negative
electricity, always associated with cold, which is opposed to positive
electricity. He strengthens his position by showing that the earth,
which when covered with snow cannot be affected by the sun’s rays,
is warmest where the snow is deepest. This he explains upon the
theory that the radiation of heat from the interior of the earth,
positively electrified, meeting at the surface of the earth with the
snow in contact with it, negatively electrified, produces the heat.
Thus he shows that it is not at all to the sun that we are indebted
for light and heat; that light is a creation sui generis, which sprung
into existence at the instant when the Deity willed, and uttered the
fiat: “Let there be light;” and that it is this independent material agent
which produces heat by friction, on account of its enormous and
incessant velocity. In short, it is the first kabalistic emanation to
which General Pleasonton introduces us, that Sephira or divine
Intelligence (the female principle), which, in unity with En-Soph, or
divine wisdom (male principle) produced every thing visible and
invisible. He laughs at the current theory of the incandescence of the
sun and its gaseous substance. The reflection from the photosphere
of the sun, he says, passing through planetary and stellar spaces,
must have thus created a vast amount of electricity and magnetism.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
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.
ebookname.com