0% found this document useful (0 votes)
35 views

Instant Download Programming With C 3rd Edition Ravichandran PDF All Chapters

The document provides a comprehensive overview of various programming ebooks available for download, including titles on C, C++, and software engineering. It features works by authors such as D. Ravichandran and covers topics from object-oriented programming to data structures. Additionally, it includes links to purchase or download these ebooks in multiple formats.

Uploaded by

aahanmueryn0
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views

Instant Download Programming With C 3rd Edition Ravichandran PDF All Chapters

The document provides a comprehensive overview of various programming ebooks available for download, including titles on C, C++, and software engineering. It features works by authors such as D. Ravichandran and covers topics from object-oriented programming to data structures. Additionally, it includes links to purchase or download these ebooks in multiple formats.

Uploaded by

aahanmueryn0
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 41

Download the Full Version of the Ebook with Added Features ebookname.

com

Programming With C 3rd Edition Ravichandran

https://ebookname.com/product/programming-with-c-3rd-
edition-ravichandran/

OR CLICK HERE

DOWLOAD NOW

Download more ebook instantly today at https://ebookname.com


Instant digital products (PDF, ePub, MOBI) available
Download now and explore formats that suit you...

Programming problem solving abstraction with C Moffat

https://ebookname.com/product/programming-problem-solving-abstraction-
with-c-moffat/

ebookname.com

Windows Forms Programming with C 1st Edition Erik Brown

https://ebookname.com/product/windows-forms-programming-with-c-1st-
edition-erik-brown/

ebookname.com

Object Oriented Programming With C 4th Edition E.


Balagurusamy

https://ebookname.com/product/object-oriented-programming-with-c-4th-
edition-e-balagurusamy/

ebookname.com

Modern Iran Roots and Results of Revolution Nikki R.


Keddie

https://ebookname.com/product/modern-iran-roots-and-results-of-
revolution-nikki-r-keddie/

ebookname.com
Grown in Britain cookbook 1st Edition Donna Air

https://ebookname.com/product/grown-in-britain-cookbook-1st-edition-
donna-air/

ebookname.com

Felson s Principles of Chest Roentgenology Third Edition


Lawrence R. Goodman Md

https://ebookname.com/product/felson-s-principles-of-chest-
roentgenology-third-edition-lawrence-r-goodman-md/

ebookname.com

Light Before Day 1st Edition Christopher Rice

https://ebookname.com/product/light-before-day-1st-edition-
christopher-rice/

ebookname.com

Invisible Engines How Software Platforms Drive Innovation


and Transform Industries 1st Edition David S. Evans

https://ebookname.com/product/invisible-engines-how-software-
platforms-drive-innovation-and-transform-industries-1st-edition-david-
s-evans/
ebookname.com

Conflict and Cooperation in the Gulf Region 1st Edition


Joseph Kostiner (Auth.)

https://ebookname.com/product/conflict-and-cooperation-in-the-gulf-
region-1st-edition-joseph-kostiner-auth/

ebookname.com
For the Love of God and People 1st Edition Elliot N. Dorff

https://ebookname.com/product/for-the-love-of-god-and-people-1st-
edition-elliot-n-dorff/

ebookname.com
Programming with

C++
Third Edition
About the Author

D Ravichandran is currently based in Hyderabad and is a corporate trainer in software engineering, data
structures and algorithms, and programming languages. He was earlier a senior faculty in the Department
of Computing, Middle East College of Information Technology, Muscat, Sultanate of Oman. He was also
a faculty member of Department of Computer Science and Engineering, Pondicherry Engineering College,
Pondicherry, for more than 15 years. He is an expert in several computer programming languages and has
more than two decades of professional programming experience. A prolific writer, he has already published
many books in the field of computer science and information technology. His affiliations include a life
membership of the Indian Society for Technical Education and a membership of the Computer Society of
India.
Programming with

C++
Third Edition

D Ravichandran
Corporate Trainer in Software Engineering
Data Structures and Algorithms and Programming Languages
Hyderabad

Tata McGraw Hill Education Private Limited


NEW DELHI
McGraw-Hill Offices
New Delhi New York St Louis San Francisco Auckland Bogotá Caracas
Kuala Lumpur Lisbon London Madrid Mexico City Milan Montreal
San Juan Santiago Singapore Sydney Tokyo Toronto
Published by the Tata McGraw Hill Education Private Limited,
7 West Patel Nagar, New Delhi 110 008.

Programming with C++, 3/e

Copyright © 2011, 2003, 1996, by Tata McGraw Hill Education Private Limited.
No part of this publication may be reproduced or distributed in any form or by any means,
electronic, mechanical, photocopying, recording, or otherwise or stored in a database or
retrieval system without the prior written permission of the publishers. The program listing
(if any) may be entered, stored and executed in a computer system, but they may not be
reproduced for publication.

This edition can be exported from India only by the publishers,


Tata McGraw Hill Education Private Limited.

ISBN-13 digits: 978-0-07-068189-7


ISBN-10 digits: 0-07-068189-9

Vice President and Managing Director—McGraw-Hill Education: Asia Pacific Region: Ajay Shukla

Head—Higher Education Publishing and Marketing: Vibha Mahajan


Manager: Sponsoring—SEM & Tech Ed: Shalini Jha
Asst Sponsoring Editor: Surabhi Shukla
Development Editor: Surbhi Suman
Executive—Editorial Services: Sohini Mukherjee
Jr Production Manager: Anjali Razdan
Dy Marketing Manager—SEM & Tech Ed: Biju Ganesan
General Manager—Production: Rajender P Ghansela
Asst General Manager—Production: B L Dogra

Information contained in this work has been obtained by Tata McGraw-Hill, from sources believed to be reliable.
However, neither Tata McGraw-Hill nor its authors guarantee the accuracy or completeness of any information
published herein, and neither Tata McGraw-Hill nor its authors shall be responsible for any errors, omissions,
or damages arising out of use of this information. This work is published with the understanding that Tata
McGraw-Hill and its authors are supplying information but are not attempting to render engineering or other
professional services. If such services are required, the assistance of an appropriate professional should be sought.

Typeset at Bukprint India, B-180A, Guru Nanak Pura, Laxmi Nagar-110 092 and printed at
Avon Printers, Plot No. 16, Main Loni Road, Jawahar Nagar, Industrial Area, Shahdara, Delhi 110 094

Cover Printer: SDR Printers

RQXCRRQZDLCZL
Dedicated to my son

Suseekaran
for his love and support
Contents

Preface to the Third Edition xv


Acknowledgements ix

1. Introduction to Object Oriented Programming 1


1.1 Introduction 1
1.2 What is Object Oriented Programming (OOP)? 2
1.3 Structured Procedural Programming (SPP) 2
1.4 Object Oriented Programming OPP 3
1.5 Characteristics of OOPs 3
1.6 Advantages of OOPs 6
1.7 Disadvantages of OOPs 7
1.8 Comparison of Structured Procedural Programming (SPP) and Object Oriented Programming
(OOP) 7
1.9 Steps in Developing OOP Programs 8
1.10 Structure of Object Oriented Programs 9
1.11 Object Oriented Languages 11
1.12 Importance of C++ 11
Review Questions 12

2. Building ANSI C++ Program 13


2.1 Introduction 13
2.2 History of C++ 13
2.3 The Latest Addenda to ANSI/ISO C++ 15
2.4 Possible Future Additions to C++ 16
2.5 C++ versus C 16
2.6 Versions of C++ 17
2.7 Source Program Names 17
2.8 Compiling and Debugging C++ Programs 17
2.9 Stages of Program Development 18
2.10 Compiling GNU GCC/G++ in Linux 20
2.11 Compiling C/C++ Program in UNIX 21
2.12 Building C++ Under Microsoft .NET Platform 22
Review Questions 31
viii Contents

3. Data Types, Operators and Expressions 32


3.1 Identifiers and Keywords 32
3.2 Data Types 34
3.3 C++ Simple Data Types 35
3.4 Literals 38
3.5 Variables 43
3.6 The Const Datatype 45
3.7 C++ Operators 46
3.8 Arithmetic Operators 46
3.9 Assignment Operators 50
3.10 Arithmetic Assignment Operators 51
3.11 Comparison and Logical Operators 52
3.12 Bitwise Operators 58
3.13 Bitwise Assignment Operators 62
3.14 Special Operators 63
3.15 Type Conversion 66
3.16 ANSI C++ Type Casting 68
3.17 Summary of ANSI C++ Operators 69
3.18 ANSI C++ Alternate Punctuation Tokens 71
Review Questions 71
Concept Review Questions 72
4. Input and Output Streams 75
4.1 Comments 75
4.2 Declaration of Variables 76
4.3 The Main () Function 77
4.4 Simple C++ Programs 77
4.5 Program Termination 79
4.6 Features of Iostream 80
4.7 Keyboard and Screen I/O 83
4.8 Manipulator Functions 86
4.9 Input and Output (I/O) Stream Flags 93
Review Questions 105
Concept Review Problems 106
Programming Exercises 111
5. Control Statements 112
5.1 Conditional Expressions 112
5.2 Loop Statements 132
5.3 Nested Control Structures 151
5.4 Breaking Control Statements 153
Review Questions 159
Concept Review Problems 160
Programming Exercises 176
Contents ix

6. Functions and Program Structures 179


6.1 Introduction 179
6.2 Defining a Function 180
6.3 The Return Statement 182
6.4 Function Prototypes 183
6.5 Types of User Defined Functions 185
6.6 Actual and Formal Arguments 198
6.7 Local VS Global Variables 200
6.8 Default Arguments 202
6.9 Structure of the C++ Program 205
6.10 Order of the Function Declaration 208
6.11 Mutually Invocated Functions 211
6.12 Nested Functions 212
6.13 Scope Rules 214
6.14 Side Effects 216
6.15 Storage Class Specifiers 217
6.16 Recursive Functions 226
6.17 Preprocessors 229
6.18 Header Files 235
6.19 Standard Functions 235
Review Questions 235
Concept Review Problems 236
Programming Exercises 247

7. Arrays 248
7.1 Introduction 248
7.2 Array Notation 249
7.3 Array Declaration 249
7.4 Array Initialisation 250
7.5 Processing with Arrays 252
7.6 Arrays and Functions 259
7.7 Multidimensional Arrays 266
7.8 Character Array 276
Review Questions 285
Concept Review Problems 286
Programming Exercises 291

8. Pointers and Strings 293


8.1 Introduction 293
8.2 Pointer Arithmetic 299
8.3 Pointers and Functions 305
8.4 Pointers to Functions 311
8.5 Passing a Function to Another Function 314
8.6 Pointers and Arrays 316
8.7 Arrays of Pointers 319
x Contents

8.8 Pointers and Strings 320


8.9 Pointers to Pointers 327
8.10 Deciphering Complex Declarations 329
Review Questions 331
Concept Review Problems 332
Programming Exercises 339

9. Structures, Unions and Bit Fields 340


9.1 Introduction 340
9.2 Declaration of a Structure 341
9.3 Processing with Structures 343
9.4 Initialisation of Structure 350
9.5 Functions and Structures 352
9.6 Arrays of Structures 357
9.7 Arrays within a Structure 361
9.8 Structures within a Structure (Nested Structure) 368
9.9 Pointers and Structures 375
9.10 Unions 379
9.11 Bit Fields 383
9.12 Typedef 386
9.13 Enumerations 389
Review Questions 391
Concept Review Problems 392
Programming Exercises 396

10. Classes and Objects 398


10.1 Introduction 398
10.2 Structures and Classes 399
10.3 Declaration of a Class 401
10.4 Member Functions 405
10.5 Defining the Object of a Class 407
10.6 Accessing a Member of Class 409
10.7 Array of Class Objects 423
10.8 Pointers and Classes 426
10.9 Unions and Classes 430
10.10 Classes within Classes (Nested Class) 432
10.11 Summary of Structures, Classes and Unions 439
Review Questions 440
Concept Review Problems 440
Programming Exercises 449

11. Special Member Functions 454


11.1 Introduction 454
11.2 Constructors 455
11.3 Destructors 470
Contents xi

11.4 Inline Member Functions 476


11.5 Static Class Members 481
11.6 Friend Functions 487
11.7 Dynamic Memory Allocations 496
11.8 This Pointer 502
11.9 Mutable 505
Review Questions 506
Concept Review Problems 506
Programming Exercises 513

12. Single and Multiple Inheritance 518


12.1 Introduction 518
12.2 Single Inheritance 520
12.3 Types of Base Classes 524
12.4 Types of Derivation 531
12.5 Ambiguity in Single Inheritance 534
12.6 Array of Class Objects and Single Inheritance 536
12.7 Multiple Inheritance 538
12.8 Container Classes 549
12.9 Member Access Control 552
12.10 Summary of the Inheritance Access Specifier 568
Review Questions 568
Concept Review Problems 569
Programming Exercises 581

13. Overloading Functions and Operators 584


13.1 Function Overloading 584
13.2 Operator Overloading 607
13.3 Overloading of Binary Operators 612
13.4 Overloading of Unary Operators 617
Review Questions 621
Concept Review Problems 622
Programming Exercises 632

14. Polymorphism and Virtual Functions 633


14.1 Polymorphism 633
14.2 Early Binding 634
14.3 Polymorphism with Pointers 638
14.4 Virtual Functions 641
14.5 Late Binding 644
14.6 Pure Virtual Functions 653
14.7 Abstract Base Classes 656
14.8 Constructors Under Inheritance 659
14.9 Destructors Under Inheritance 661
14.10 Virtual Destructors 664
xii Contents

14.11 Virtual Base Classes 668


Review Questions 673
Concept Review Problems 674
Programming Exercises 685

15. Templates, Namespace and Exception Handling 689


15.1 Function Template 689
15.2 Class Template 694
15.3 Overloading of Function Template 698
15.4 Exception Handling 703
15.5 Namespace 710
Review Questions 724
Concept Review Problems 725
Programming Exercises 735

16. Data File Operations 736


16.1 Opening and Closing of Files 736
16.2 Stream State Member Functions 738
16.3 Reading/Writing a Character from a File 740
16.4 Binary File Operations 745
16.5 Classes and File Operations 747
16.6 Structures and File Operations 753
16.7 Array of Class Objects and File Operations 754
16.8 Nested Classes and File Operations 757
16.9 Random Access File Processing 761
Review Questions 766
Programming Exercises 767

17. STL–Containers Library 768


17.1 Introduction 768
17.2 Vector Class 769
17.3 Double Ended Queue (Deque) Class 772
17.4 List Class 775
17.5 Stack Class 777
17.6 Queue Class 781
17.7 Priority_queue Class 786
17.8 Set 788
17.9 Multiset 789
17.10 Map 790
17.11 Multimap 792
17.12 Bitset 793
Review Questions 793

18. STL–Iterators and Allocators 795


18.1 Introduction 795
Contents xiii

18.2 Types of Iterators 796


18.3 <Iterator> Member Functions 796
18.4 Operators 800
18.5 Types of Iterator Classes 801
18.6 Summary of Iterator Classes 802
Review Questions 803

19. STL–Algorithms and Function Objects 804


19.1 Introduction 804
19.2 Non-modifying Sequence Algorithms 805
19.3 Modifying Sequence Algorithms 806
19.4 Sorted Sequence Algorithms 810
19.5 Heap Operation Algorithms 812
19.6 Comparison Algorithms 812
19.7 Permutation Algorithm 813
19.8 Numeric Algorithms 813
19.9 Function Objects 814
19.10 The Functional Members 814
Review Questions 818

Appendix 820
Bibliography 836
Index 838
Other documents randomly have
different content
The Project Gutenberg eBook of Calvin Wilson
Mateer, forty-five years a missionary in Shantung,
China
This ebook is for the use of anyone anywhere in the United States
and most other parts of the world at no cost and with almost no
restrictions whatsoever. You may copy it, give it away or re-use it
under the terms of the Project Gutenberg License included with this
ebook or online at www.gutenberg.org. If you are not located in the
United States, you will have to check the laws of the country where
you are located before using this eBook.

Title: Calvin Wilson Mateer, forty-five years a missionary in


Shantung, China
a biography

Author: D. W. Fisher

Release date: September 20, 2023 [eBook #71695]


Most recently updated: October 14, 2023

Language: English

Credits: Brian Wilson and the Online Distributed Proofreading Team


at https://www.pgdp.net (This file was produced from
images generously made available by The Internet
Archive/American Libraries.)

*** START OF THE PROJECT GUTENBERG EBOOK CALVIN


WILSON MATEER, FORTY-FIVE YEARS A MISSIONARY IN
SHANTUNG, CHINA ***
CALVIN WILSON MATEER

C. W. MATEER
Calvin Wilson Mateer

FORTY-FIVE YEARS A MISSIONARY


IN SHANTUNG, CHINA

A BIOGRAPHY

BY DANIEL W. FISHER

PHILADELPHIA
THE WESTMINSTER PRESS
1911

Copyright, 1911, by
The Trustees of the Presbyterian Board of
Publication and Sabbath School Work
Published September, 1911
CONTENTS
PAGE
Introduction 9
CHAPTER I
The Old Home 15
Birth—The Cumberland Valley—Parentage—Brothers and Sisters,
Father, Mother, Grandfather—Removal to the “Hermitage”—Life
on the Farm—In the Home—Stories of Childhood and Youth.

CHAPTER II
The Making of the Man 27
Native Endowments—Influence of the Old Home—A Country
Schoolmaster—Hunterstown Academy—Teaching School—
Dunlap’s Creek Academy—Profession of Religion—Jefferson
College—Recollections of a Classmate—The Faculty—The
Class of 1857—A Semi-Centennial Letter.

CHAPTER III
Finding His Life Work 40
Mother and Foreign Missions—Beaver Academy—Decision to be a
Minister—Western Theological Seminary—The Faculty—Revival
—Interest in Missions—Licentiate—Considering Duty as to
Missions—Decision—Delaware, Ohio—Delay in Going—
Ordination—Marriage—Going at Last.

CHAPTER IV
Gone to the Front 57
Bound to Shantung, China—The Voyage—Hardships and Trials on
the Way—At Shanghai—Bound for Chefoo—Vessel on the
Rocks—Wanderings on Shore—Deliverance and Arrival at
Chefoo—By Shentza to Tengchow.

CHAPTER V
The New Home 70
The Mateer Dwelling—Tengchow as It Was—The Beginning of
Missions There—The Kwan Yin Temple—Making a Stove and
Coal-press—Left Alone in the Temple—Its Defects—Building a
New House—Home Life.

CHAPTER VI
His Inner Life 88
Not a Dreamer—Tenderness of Heart—Regeneration—Religious
Reserve—Record of Religious Experiences—Depression and
Relief—Unreserved Consecration—Maturity of Religious Life—
Loyalty to Convictions.

CHAPTER VII
Doing the Work of an Evangelist 105
Acquiring the Language—Hindrances—Beginning to Speak Chinese
—Chapel at Tengchow—Province of Shantung—Modes of Travel
—Some Experiences in Travel—First Country Trip—Chinese
Inns—A Four Weeks’ Itineration—To Wei Hsien—Hatred of
Foreigners—Disturbance—Itinerating with Julia—Chinese
Converts—To the Provincial Capital and Tai An—Curtailing His
Itinerations—Later Trips.

CHAPTER VIII
The Tengchow School 128
The School Begun—Education and Missions—First Pupils—Means of
Support—English Excluded—Growth of School—A Day’s
Programme—Care of Pupils—Discipline—An Attempted Suicide
—Conversion of a Pupil—First Graduates—Reception After
Furlough—An Advance—Two Decades of the School.

CHAPTER IX
The Press and Literary Labors 150
Contributions to the Periodicals—English Books—The Shanghai
Mission Press—Temporary Superintendency—John Mateer—
Committee on School Books—Earlier Chinese Books—School
Books—Mandarin Dictionary—Mandarin Lessons—Care as to
Publications—Pecuniary Returns.

CHAPTER X
The Care of the Native Christians 173
Reasons for Such Work—The Church at Tengchow—Discipline—
Conversion of School Boys—Stated Supply at Tengchow—
Pastor—As a Preacher—The Scattered Sheep—Miao of Chow
Yuen—Ingatherings—Latest Country Visitations—“Methods of
Missions”—Presbytery of Shantung—Presbytery in the Country
—Synod of China—Moderator of Synod—In the General
Assembly.

CHAPTER XI
The Shantung College 207
“The College of Shantung”—The Equipment—Physical and Chemical
Apparatus—Gathering the Apparatus—The Headship Laid Down
—The Anglo-Chinese College—Problem of Location and
Endowment—Transfer of College to Wei Hsien—A New
President—“The Shantung Christian University”—Personal
Removal to Wei Hsien—Temporary President—Official
Separation—The College of To-day.

CHAPTER XII
With Apparatus and Machinery 236
Achievements—Early Indications—Self-Development—Shop—Early
Necessities—As a Help in Mission Work—Visitors—Help to
Employment for Natives—Filling Orders—A Mathematical
Problem—Exhibitions.

CHAPTER XIII
The Mandarin Version 252
First Missionary Conference—The Chinese Language—Second
Missionary Conference—Consultation as to New Version of
Scriptures—The Plan—Selection of Translators—Translators at
Work—Difficulties—Style—Sessions—Final Meeting—New
Testament Finished—Lessons Learned—Conference of 1907—
Translators of the Old Testament.

CHAPTER XIV
Incidents by the Way 275
Trials—Deaths—The “Rebels”—Tientsin Massacre—Japanese War
with China—Boxer Uprising—Famine—Controversies—English
in the College—Pleasures—Distinctions and Honors—Journeys
—Furloughs—Marriage—The Siberian Trip—Scenes of Early
Life.

CHAPTER XV
Facing the New China 305
The Great Break-Up—Past Anticipations—A Maker of the New China
—Influence of Missionaries—Present Indications—Dangers—
Duties—Future of Christianity.

CHAPTER XVI
Called Up Higher 319
The Last Summer—Increasing Illness—Taken to Tsingtao—The End
—A Prayer—Service at Tsingtao—Funeral at Chefoo—Tributes
of Dr. Corbett, Dr. Hayes, Dr. Goodrich, Mr. Baller, Mrs. A. H.
Mateer—West Shantung Mission—English Baptist Mission—
Presbyterian Board—Secretary Brown—Biographer—“Valiant for
the Truth.”
INTRODUCTION
It is a privilege to comply with the request of Dr. Fisher to write a
brief introduction to his biography of the late Calvin W. Mateer, D.D.,
LL.D. I knew Dr. Mateer intimately, corresponded with him for
thirteen years and visited him in China. He was one of the makers of
the new China, and his life forms a part of the history of Christian
missions which no student of that subject can afford to overlook. He
sailed from New York in 1863, at the age of twenty-eight, with his
young wife and Rev. and Mrs. Hunter Corbett, the journey to China
occupying six months in a slow and wretchedly uncomfortable sailing
vessel. It is difficult now to realize that so recently as 1863 a voyage
to the far East was so formidable an undertaking. Indeed, the
hardships of that voyage were so great that the health of some
members of the party was seriously impaired.
Difficulties did not end when the young missionaries arrived at
their destination. The people were not friendly; the conveniences of
life were few; the loneliness and isolation were exceedingly trying;
but the young missionaries were undaunted and pushed their work
with splendid courage and faith. Mr. Corbett soon became a leader in
evangelistic work, but Dr. Mateer, while deeply interested in
evangelistic work and helping greatly in it, felt chiefly drawn toward
educational work. In 1864, one year after his arrival, he and his
equally gifted and devoted wife managed to gather six students.
There were neither text-books, buildings, nor assistants; but with a
faith as strong as it was sagacious Dr. and Mrs. Mateer set
themselves to the task of building up a college. One by one buildings
were secured, poor and humble indeed, but sufficing for a start. The
missionary made his own text-books and manufactured much of the
apparatus with his own hands. He speedily proved himself an
educator and administrator of exceptional ability. Increasing numbers
of young Chinese gathered about him. The college grew. From the
beginning, Mr. Mateer insisted that it should give its training in the
Chinese language, that the instruction should be of the most
thorough kind, and that it should be pervaded throughout by the
Christian spirit. When, after thirty-five years of unremitting toil,
advancing years compelled him to lay down the burden of the
presidency, he had the satisfaction of seeing the college recognized
as one of the very best colleges in all Asia. It continues under his
successors in larger form at Wei Hsien, where it now forms the Arts
College of the Shantung Christian University.
Dr. Mateer was famous not only as an educator, but as an author
and translator. After his retirement from the college he devoted
himself almost wholly to literary work, save for one year, when a
vacancy in the presidency of the college again devolved its cares
temporarily upon him. His knowledge of the Chinese language was
extraordinary. He prepared many text-books and other volumes in
Chinese, writing some himself and translating others. The last years
of his life were spent as chairman of a committee for the revision of
the translation of the Bible into Chinese, a labor to which he gave
himself with loving zeal.
Dr. Mateer was a man of unusual force of character; an educator,
a scholar and an executive of high capacity. Hanover College, of
which Dr. D. W. Fisher was then president, early recognized his
ability and success by bestowing upon him the honorary degree of
Doctor of Divinity, and in 1903 his alma mater added the degree of
Doctor of Laws. We mourn that the work no longer has the benefit of
his counsel; but he builded so well that the results of his labors will
long endure, and his name will always have a prominent place in the
history of missionary work in the Chinese empire.
Dr. Fisher has done a great service to the cause of missions and
to the whole church in writing the biography of such a man. A college
classmate and lifelong friend of Dr. Mateer, and himself a scholar
and educator of high rank, he has written with keen insight, with full
comprehension of his subject, and with admirable clearness and
power. I bespeak for this volume and for the great work in China to
which Dr. Mateer consecrated his life the deep and sympathetic
interest of all who may read this book.
Arthur Judson Brown
156 Fifth Avenue, New York City, April 13th, 1911
PREFACE
When I was asked to become the biographer of Dr. Mateer, I had
planned to do other literary work, and had made some preparation
for it; but I at once put that aside and entered on the writing of this
book. I did this for several reasons. Though Dr. Mateer and I had
never been very intimate friends, yet, beginning with our college and
seminary days, and on to the close of his life, we had always been
very good friends. I had occasionally corresponded with him, and,
being in hearty sympathy with the cause of foreign missions, I had
kept myself so well informed as to his achievements that I had
unusual pleasure in officially conferring on him the first of the
distinctions by which his name came to be so well adorned. As his
college classmate, I had joined with the other survivors in
recognizing him as the one of our number whom we most delighted
to honor. When I laid down my office of college president, he
promptly wrote me, and suggested that I occupy my leisure by a visit
to China, and that I use my tongue and pen to aid the cause of the
evangelization of that great people. Only a few months before his
death he sent me extended directions for such a visit. When—wholly
unexpectedly—the invitation came to me to prepare his biography,
what could I do but respond favorably?
It has been my sole object in this book to reveal to the reader Dr.
Mateer, the man, the Christian, the missionary, both his inner and his
outer life, just as it was. In doing this I have very often availed myself
of his own words. Going beyond these, I have striven neither to keep
back nor to exaggerate anything that deserves a place in this record.
All the while the preparation of this book has been going forward in
my hands my appreciation of the magnitude of the man and of his
work has been increasing. Great is the story of his career. If this
does not appear so to any reader who has the mind and the heart to
appreciate it, then the fault is mine. It, in that case, is in the telling,
and not in the matter of the book, that the defect lies.
So many relatives and acquaintances of Dr. Mateer have
contributed valuable material, on which I have drawn freely, that I
dare not try to mention them here by name. It is due, however, to
Mrs. J. M. Kirkwood to acknowledge that much of the chapter on
“The Old Home” is based on a monograph she prepared in advance
of the writing of this biography. It is due also to Mrs. Ada H. Mateer
to acknowledge the very extensive and varied assistance which she
has rendered in the writing of this book: first, by putting the material
already on hand into such shape that the biographer’s labors have
been immensely lightened, and later, by furnishing with her own pen
much additional information, and by her wise, practical suggestions.
D. W. F.
Washington, 1911
I
THE OLD HOME

“There are all the fond recollections and associations of my youth.”—


journal, March 4, 1857.

Calvin Wilson Mateer, of whose life and work this book is to tell,
was born in Cumberland County, Pennsylvania, near
Shiremanstown, a few miles west of Harrisburg, on January 9, 1836.
This Cumberland valley, in which he first saw the light, is one of
the fairest regions in all our country. Beginning at the great, broad
Susquehanna, almost in sight of his birthplace, it stretches far away,
a little to the southwest, on past Chambersburg, and across the state
line, and by way of Hagerstown, to its other boundary, drawn by a
second and equally majestic stream, the historic Potomac. Physically
considered, the splendid Shenandoah valley, still beyond in Virginia,
is a further extension of the same depression. It is throughout a most
attractive panorama of gently rolling slopes and vales, of fertile and
highly cultivated farms, of great springs of purest water and of
purling brooks, of little parks of trees spared by the woodman’s ax, of
comfortable and tasteful rural homes, of prosperous towns and
villages where church spires and school buildings and the
conveniences of modern civilization bear witness to the high
character of the people,—all of this usually set like a picture in a
framework of the blue and not very rugged, or very high, wooded
mountains between which, in their more or less broken ranges, the
entire valley lies.
True, it was winter when this infant first looked out on that world
about him, but it was only waiting for spring to take off its swaddling
of white, and to clothe it with many-hued garments. Twenty-eight
years afterward, almost to the very day, he, cast ashore on the coast
of China, was struggling over the roadless and snow covered and, to
him, wholly unknown ground toward the place near which he was to
do the work of his life, and where his body rests in the grave. When
he died, in his seventy-third year, the spiritual spring for which he
had prayed and longed and labored had not yet fully come, but there
were many indications of its not distant approach.
John Mateer, the father of Calvin, was born in this beautiful
Cumberland valley, on a farm which was a part of a large tract of
land entered by the Mateers as first settlers, out of whose hands,
however, it had almost entirely passed at the date when this
biography begins. The mother of Calvin was born in the neighboring
county of York. Her maiden name was Mary Nelson Diven. Both
father and mother were of that Scotch-Irish descent to which
especially Pennsylvania and Virginia are indebted for so many of
their best people; and they both had behind them a long line of
sturdy, honorable and God-fearing ancestors.
At the time of Calvin’s birth his parents were living in a frame
house which is still standing; and though, with the passing of years, it
has much deteriorated, it gives evidence that it was a comfortable
though modest home for the little family.
One of the employments of his father while resident there was the
running of a water mill for hulling clover seed; and Calvin tells
somewhere of a recollection that he used to wish when a very little
boy that he were tall enough to reach a lever by which he could turn
on more water to make the mill go faster,—a childish anticipation of
his remarkable mechanical ability and versatility in maturer years.
Calvin was the oldest of seven children—five brothers and two
sisters; in the order of age, Calvin Wilson, Jennie, William Diven,
John Lowrie, Robert McCheyne, Horace Nelson and Lillian, of whom
Jennie, William, Robert and Horace are still living. Of these seven
children, Calvin and Robert became ministers of the gospel in the
Presbyterian Church, and missionaries in Shantung, China; John for
five years had charge of the Presbyterian Mission Press at
Shanghai, and later of the Congregational Press at Peking, where he
died; Lillian taught in the Girls’ School at Tengchow, and, after her
marriage to Rev. William S. Walker, of the Southern Baptist Mission,
in the school at Shanghai, until the failing health of her husband
compelled her to return to the United States; William for a good while
was strongly disposed to offer himself for the foreign missionary
service, and reluctantly acting on advice, turned from it to business.
Jennie married an exceptionally promising young Presbyterian
minister, and both offered themselves to the foreign work and were
under appointment to go to China when health considerations
compelled them to remain in their homeland. Some years after his
death she married a college professor of fine ability. Horace is a
professor in the University of Wooster, and a practicing physician.
In view of this very condensed account of the remarkable life and
work of the children in this household, one may well crave to know
more about the parents, and about the home life in the atmosphere
of which they were nurtured. Their father and mother both had the
elementary education which could be furnished in their youth by the
rural schools during the brief terms for which they were held each
year. In addition, the mother attended a select school in Harrisburg
for a time. Both father and mother built well on this early foundation,
forming the habit of wise, careful reading. Both were professing
Christians when they were married, and in infancy Calvin was
baptized in the old Silver Spring Church, near which they resided.
Later the father became a ruling elder in the Presbyterian church to
which they had removed their membership. In this capacity he was
highly esteemed, his pastor relying especially on his just, discerning
judgment. He had a beautiful tenor voice and a line musical sense,
and he led the choir for a number of years. Few laymen in the church
at large were better informed as to its doctrines and history, and few
were more familiar with the Bible. There was in the church a library
from which books were regularly brought home; religious papers
were taken and read by the whole family, and thus all were
acquainted with the current news of the churches, and with the
progress of the gospel in the world.
In the conduct of his farm Mr. Mateer was thrifty, industrious and
economical. His land did not yield very bountifully, but all of its
products were so well husbanded that notwithstanding the size of his
family he yet accumulated considerable property. Though somewhat
reluctant at first to have his boys one after another leave him, thus
depriving him of their help on the farm, he aided each to the extent of
his ability, and as they successively fitted themselves for larger lives
he rejoiced in their achievements.
Mr. Mateer died at Monmouth, Illinois, in 1875. When the tidings
reached Calvin out in China, he wrote home to his mother a beautiful
letter, in which among other things he said: “Father’s death was
eminently characteristic of his life—modest, quiet and self-
suppressed. He died the death of the righteous and has gone to a
righteous man’s reward. The message he sent John and me was not
necessary; that he should ‘die trusting in Jesus’ was not news to us,
for we knew how he had lived.”
DR. MATEER’S MOTHER

By reading the records that have been at my command I have


gotten the conviction that the mother was the stronger character, or
at least that she more deeply impressed herself on the children.
When Calvin made his last visit to this country, he was asked whose
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.

Let us accompany you on the journey of exploring knowledge and


personal growth!

ebookname.com

You might also like