Starting Out With Visual C 4th Edition Gaddis Solutions Manual 1
Starting Out With Visual C 4th Edition Gaddis Solutions Manual 1
1. c
2. b
3. d
4. a
5. c
6. b
7. c
8. a
9. b
10. a
11. b
12. c
13. a
14. c
15. b
16. d
17. b
18. a
19. c
20. b
True or False
1. False
2. False
3. True
4. True
5. True
6. False
7. True
8. False
9. False
10. False
Short Answer
Algorithm Workbench
1. if (x > 100)
{
y = 20;
z = 40;
}
2. if (a < 10)
{
b = 0;
c = 1;
}
3. if (a < 10)
{
b = 0;
}
else
{
b = 99;
}
8. switch (selection)
{
case 1:
MessageBox.Show("You selected 1.");
break;
case 2:
MessageBox.Show("You selected 2.");
break;
case 3:
MessageBox.Show("You selected 3.");
break;
case 4:
MessageBox.Show("You selected 4.");
break;
default:
MessageBox.Show("Not good with numbers, eh?");
break;
9. if (nameListBox.SelectedIndex != -1)
{
MessageBox.Show(nameListBox.SelectedItem.ToString());
}
G. W.
LETTER CXXXIII.
To Mrs. Martha B.
My dear Sister,
I Call you not Martha, but M , for I hope you have chosen the better
part, which shall not be taken from you: And yet not so properly may
you be said to chuse, as the L to have chosen you; for we love
G , because he first loved us. I can trace my conversion through its
several steps, but cannot find one step I first took towards G . I have
been a backslider from my very infancy. Had not G called after me,
and by his spirit said unto me, as unto Adam, “Where art thou? Into what
a dreadful condition hast thou plunged thyself?” I should have fled from
him (if possible) for ever. I am persuaded you, my dear Sister, can
readily say the same; for otherwise how can we truly value our L ’s
redeeming blood? How can we relish the doctrine of G ’s free grace,
and our being freely justified by faith which is in C J ? Oh let
us beg of G to teach us these divine truths more and more, (for he
alone can teach them) and let us lay out ourselves to teach them to
others. You are happy in being in fellowship with some, who I hope will
be ready, if need be, to seal these truths with their blood. Be humble, my
dear Sister, be humble; and cease not to pray for
G. W.
LETTER CXXXIV.
Philadelphia, Nov. 28, 1739.
’s sake.
Rejoice and be exceeding glad. If you endure to the end, and naked
follow a naked C , great shall be your reward in heaven. There is no
being a christian without enduring contempt; no being happy hereafter,
without suffering reproach here. The world can only love its own. As
they hate G , so they must hate those that are desirous to be like him:
But be not dismayed; C ’s strength shall be magnified in your
weakness: A living faith will support you under all. When your father
and mother forsake you, the L will take you up. The greatest foes
you will find to be those of your own heart. Subdue these, and outward
crosses will affect you but little. To conquer yourself will be a laborious
task; but if you believe, J C shall even do this for you. Get out
of yourself, rely wholly on, and be a co-worker with him, and he shall be
to you wisdom, righteousness, sanctification, and redemption. Rachel
greatly wishes this, but not more sincerely than
LETTER CXXXV.
Philadelphia, Nov. 28, 1739.
G. W.
LETTER CXXXVI.
Philadelphia, Nov. 28, 1739.
G. W.
LETTER CXXXVII.
Philadelphia, Nov. 28, 1739.
G. W.
LETTER CXXXVIII.
To the Rev. Mr. R. E.
T HE cordial and tender love which I bear you, will not permit me to
neglect any opportunity of sending to you. I bless the L
my soul, for raising you and several other burning and shining
from
lights to appear for him in this midnight of the church. My heart has been
much warmed during my voyage, by reading some of your sermons,
especially that preached before the associate presbytery. I long more and
more to hear the rise and progress of your proceedings, and how far you
would willingly carry the reformation of the church of Scotland. There
are some expressions which I suppose will be interpreted to your
disadvantage, both by your domestic and foreign enemies. I should be
glad to know who are those martyrs to which you refer, and of what
nature those covenants were which you mention in your sermon. My
ignorance of the constitution of the Scotch church is the cause of my
writing after this manner. I should be obliged to you, if you would be
pleased to recommend to me some useful books, especially such which
open the holy sacrament; for in G ’s law is my delight. Boston’s
fourfold State of Man I like exceedingly. Under G it has been of much
service to my soul. I believe I agree with you and him in the essential
truths of christianity. I bless G , his spirit has convinced me of our
eternal election by the Father through the Son, of our free justification
through faith in his blood, of our sanctification as the consequence of
that, and of our final perseverance and glorification as the result of all.
These I am persuaded G has joined together; these, neither men nor
devils shall ever be able to put asunder. My only scruple at present is,
“Whether you approve of taking the sword in defence of your religious
rights?” One of our English bishops I remember, when I was with him,
called you Cameronians. They, I think, took up arms, which I think to be
contrary to the spirit of J C and his apostles. Some few
passages in your sermon before the presbytery, I thought were a little
suspicious of favouring that principle. I pray G your next may inform
me that I am mistaken: For when zeal carries us to such a length, I think
it ceases to be zeal according to knowledge. Dearest Sir, be not angry at
my writing thus freely. I love, I honour you in the bowels, and for the
sake of J C , from my soul. I wish you good luck in all your
pious undertakings. I pray G to prosper the works of your hands, and
to make you a noble instrument in bringing many sons to glory. Pray
send an immediate answer, directed as usual, and care will be taken to
have it remitted to, reverend and dear Sir,
G. W.
LETTER CXXXIX.
Philadelphia, Nov. 28, 1739.
Dear Brother,
I T is much upon my heart to send you a line. Although you are not
with me, yet as G was pleased to touch you by my unworthy
ministry, I love you with a peculiar love. Business prevented my
writing to you when in Yorkshire. I was sorry to hear that Brother J――
had reason to blame your conduct. My dear brother, be not offended, if in
the meekness and gentleness of C , I exhort you to be sober-minded.
Follow after, but do not run before the blessed Spirit; if you do, although
you may benefit others, and G may over-rule every thing for your
good, yet you will certainly destroy the peace of your own soul. G has
been pleased to call you by his grace, and to give you joy in the Holy
Ghost: But, my brother, I hope it will be more settled and substantial,
and joined with meekness and humility of heart. A joy which is the result
of inward trials, and flowing from a long experience of the buffeting of
satan. Such a joy will make you apt and fit to teach, and keep you from
being puffed up above measure. It will exalt, at the same time as it
humbles your soul. The L direct my dear brother in all things: I wish
all his servants were prophets; but let every one be rightly persuaded of
his call to public teaching. It is dangerous to touch the ark, though it be
falling, without a commission from above. But no more. I am
G. W.
LETTER CXL.
Philadelphia, Nov. 28, 1739.
G. W.
LETTER CXLI.
Philadelphia, Nov. 28, 1739.
Reverend Sir,
G. W.
LETTER CXLII.
Philadelphia, Nov. 28, 1739.
I NDEED I love you, though it was so long before I came to see you.
Want of time, not of respect, was the cause. G is my judge how
earnestly I long after your salvation, and how willingly I would spend
and be spent in order to promote it. Oh how closely does true faith in
J C our head, knit all his members in love to one another; what
a divine harmony and attraction is there between them, when they have
drank into and been made partakers of one and the same spirit? How
does the love of G dilate and enlarge their hearts! How do all little
distinctions about externals fall away, and every other name is
swallowed up in the name of J C ? This, my dear brother, is that
catholic spirit, which will cement all denominations of sincere professors
together. This is the spirit of which free distinguishing grace has made
you a partaker, and which I pray G we both may partake of every day
more and more. He is faithful who has promised, who also will do it. I
find it is not in vain that we have believed in J . He is G , and his
work is perfect; his love is like himself unchangeable; his gifts and
callings are without repentance, and therefore, though I am but a babe in
C , yet I am persuaded I shall see you crowned with glory. Then, my
dear brother, we shall have time enough together. Then, there will be no
parting, no fear of falling; but we shall drink eternally of those pleasures
which flow from G ’s right hand for evermore. Supported with this
hope, what hinders but I may come once again, when the L permits,
and offer C ’s everlasting righteousness to poor perishing sinners.
The devil and his servants will rage horribly, and perhaps cast me into
prison, nay, put me to death: But if you will come and visit me, by the
help of my G , I will preach to you even there; for I am not ashamed of
the gospel of C . I have felt it to be the power of G unto my
salvation. Oh, my brother, the fire kindles whilst I am writing; but I must
have done. Pray salute those dear souls that I spoke to at your house, and
all other friends. Entreat them to pray and give thanks for me; and assure
them they are not forgotten by
Ever yours in C ,
G. W.
LETTER CXLIII.
Philadelphia, Nov. 28, 1739.
Mr. H――,
G. W.
LETTER CXLIV.
To the Rev. Mr. P――.
T ILL now, I have neither had leisure nor freedom to answer your
kind letter. Blessed be G , who has opened the hearts of some of
his people at New York to receive the word. May he enable you to
water what his own right hand hath planted, and grant to your labours a
divine increase! Indeed I wish you good luck in the name of the L .I
wish all his servants were prophets. Oh that he would be pleased to send
forth experimental labourers into his harvest:—for I fear amongst you, as
well as in other places, there are many who are well versed in the
doctrines of grace, having learned them at the university, but
notwithstanding are heart-hypocrites, and enemies to the power of
godliness.—Dear Sir, I use this freedom, because I love simplicity. I
confess I am but a child in grace, as well as years. Pardon this freedom,
for out of the fulness and sincerity of my heart my pen writeth.—I thank
your son and dear Mr. S―― for what they did on my account. Alas, I
fear they think too highly of me. Oh dear Sir, entreat the G of all grace
to give me humility, so shall success not prove my ruin. My most cordial
respects and hearty thanks attend dear Mrs. P――, I pray G in all
things to make her a help meet for you—As fast as I can snatch a few
moments from public business, more New York friends may expect to
hear from me—A sense of their favours is still upon my heart—I would
willingly remember them, whenever I go in and out before the L . Mr.
N――’s letter, and my next journal, will acquaint you, how the L
J has been getting himself the victory, since I left New York—There
has been such little opposition, that I have been tempted almost to cry
out, “Satan, why sleepest thou?” But G pities my weakness. Oh, dear
Sir, thank him in my behalf, for indeed he deals most lovingly with, Rev.
Sir,
G. W.
LETTER CXLV.
Upper Marlborough, Dec. 8, 1739.
Dear Sir,
G. W.
LETTER CXLVI.
To Mr. B――.
G. W.
LETTER CXLVII.
To Captain B――.
Williamsburgh, (Virginia) Dec. 15, 1739.
G. W.
LETTER CXLVIII.
To the Rev. Mr. G―― T――.
Williamsburgh, Dec. 15, 1739.
My dear Brother,
B E not angry because you have not heard from me. Indeed I love and
honour you in the bowels of J C . You are seldom out of
my thoughts; but till now I have not had liberty given me, to send
you a line—I trust the work goes on gloriously in your parts. The hand of
the L brought wondrous things to pass, before we left Pensilvania;
but in these parts satan seems to lead people captive at his will. The
distance of the plantations prevents people’s assembling themselves
together.—Here are no great towns, as in other provinces, and the
commonalty is made up of Negroes and convicts, and if they pretend to
serve G , their masters, Pharaoh like, cry out, “Ye are idle, ye are
idle.” Last night I read the affecting account of your brother John; let me
die, O L , the death of that righteous man, and let my future state be
like his! O my dear friend, my brother, entreat the L that I may grow
in grace, and pick up the fragments of my time, that not a moment of it
may be lost. Teach me, oh teach me the way of G more perfectly.
Rebuke, reprove, exhort me with all authority—I feel I am but a babe in
C . I long to know more of the holy J . He has manifested
himself to my soul, both in a way of humiliation and exaltation. Since I
saw you, both his rod and staff have comforted me. At present, he makes
me young and lively as an eagle; I only wish I was more worthy to
subscribe myself
G. W.
LETTER CXLIX.
To Mrs. C.
J UST now we have been singing the hymn, which we sung at Broad-
oak; and as I generally do at such seasons, I thought of that happy
time wherein we sung it in your great hall. It was a time much to be
remembered, an anticipation, I believe, of that blessed time when we all
shall meet to sing the song of the Lamb in the heavenly Jerusalem—For
the adoption of the spirit, if truly received, is the earnest of our promised
inheritance. We are sealed thereby to the day of redemption, and
therefore may give both men and devils the challenge to separate us, if
they can, from the love of G which is in C J our L —I
am verily persuaded, that since I left you, all things have worked
together for your good. As I am travelling, often does my soul think both
of you and yours, and out of the fulness of my heart, do I often pour forth
this or such like petitions, “Dearest L , be for ever gracious to the
houshold of ――!” My conscience hath smote me frequently, for not
writing you a longer letter. I send this to ask pardon, and to assure you
how often you and your daughters are upon my heart, when I go in and
out before the L —I long to hear how the L J hath magnified
his strength in your weakness. It would fill a volume to tell his goodness
and truth; and my base ingratitude sometimes comes with such
conviction upon my heart, that I can scarce forbear getting off my horse,
and humbling myself in the way side. Indeed, I am the chief of sinners,
and yet overflowing hath the L J been in his love. You will hear
more soon by the journal which will be sent. Dear Mrs. C――, my love
to all.
G. W.
LETTER CL.
Savannah, Jan. 16, 1740.
Reverend and dear Sir,
W ITH much pleasure (tho’ not till last week) I received your kind
affectionate letter. I thank you for it with all my soul, and pray
G to reward you for this, and all other your works of faith and
labours of love. You may depend on my not being prejudiced against you
or your brethren, by any evil report. They only endear you to me more
and more; and were your enemies to represent you as black as hell, I
should think you were the more glorious in the sight of heaven. Your
sweet criticisms and remarks upon my journal and sermons, were
exceeding acceptable, and very just. I assure you, dear Sir, I am fully
convinced of the doctrine of election, free justification, and final
perseverance. My observations on the Quakers, were only intended for
those particular persons with whom I then conversed. The tenets of the
quakers in general, about justification, I take to be false and unscriptural.
Your adversaries need take no advantage against you, by any thing I have
written; for I think it every minister’s duty to declare against the
corruptions of that church to which they belong, and not to look upon
those as true members of their communion, who deny its publick
constitutions. This is your case in Scotland, and ours in England. I see no
other way for us to act at present, than to go on preaching the truth as it
is in J ; and then if our brethren cast us out, G will direct us to take
that course which is most conducive to his glory, and his people’s good. I
think I have but one objection against your proceedings; “Your insisting
only on presbyterian government, exclusive of all other ways of
worshipping G .” Will not this, dear Sir, necessarily lead you
(whenever you get the upper-hand) to oppose and persecute all that differ
from you in their church government, or outward way of worshipping
G ? Our dear brother and fellow-labourer Mr. G―― T―― thinks this
will be the consequence, and said he would write to you about it. As for
my own part, (though I profess myself a minister of the church of
England) I am of a catholic spirit; and if I see a man who loves the L
J in sincerity, I am not very solicitous to what outward communion
he belongs. The kingdom of G , I think, does not consist in any such
thing. These are my sentiments, dear Sir, and I write them out of love—I
am ashamed (because only a babe in C ) to pretend as it were to
direct; but true friendship needs no apology. G is doing great things in
America. My journal, which I send over with this, will shew you what he
has done already. Your welfare is much upon my heart, and as I am
enabled, I make mention of you in my prayers. Affairs of the Orphan-
house go on well. Some few, even here, love the L J . Oh, dear
Sir, pray for us, and especially for
G. W.
LETTER CLI.
Savannah, Jan. 22, 1740.
Your affectionate though very weak and unworthy brother, servant and
fellow-labourer in C ,
G. W.
LETTER CLII.
To the Rev. Mr. C.
I Received your kind, though undeserving letter, and now snatch a few
moments from my other avocations, in order to send you a short
answer. May G who knits the elect in one communion and
fellowship, sanctify our friendship and correspondence to the stirring up
each other to love and to good works!—It pleased me to find you breathe
so catholic a spirit.—O that bigotry and party zeal were not so much as
once named amongst us, as becometh saints! Since C is not divided
in himself, why should christians be divided one amongst another?
Bigotry, I am sure, can never be the fruit of that wisdom which cometh
from above.—No, it is earthly, sensual, and devilish. When I come to
New England I shall endeavour to recommend an universal charity
amongst all the true members of C ’s mystical body. Perhaps
therefore, the fields may be the most unexceptionable place to preach in.
You and your brethren, I am persuaded, will follow our L even
without the camp, and rejoice to bear his sacred reproach. Assist me,
dear Sir, in your prayers, that my coming may be in the fulness of the
gospel of peace—I shall come only with my sling and with my stone.—
If the L shall be pleased so to direct me, that I may strike some self-
righteous Goliahs to the heart, I know you will rejoice with, Rev. and
dear Sir,
G. W.
LETTER CLIII.
To Mr. W. D.
My dear Brother in C ,
B LESSED be G , for the good report I hear of your zeal for our
dear Emanuel. Go on, I beseech you by the mercies of G
C J ; go on, and I am persuaded the pleasure of the L
in
G. W.
LETTER CLIV.
To Mrs. D.
Dear Madam,
I Rejoice to hear that you are likely to be cast out of your mother’s Will
only for following C . This may be only the beginning of
temptations. G , I believe, out of love will try you to the uttermost.
You have drank deep of heavenly comforts; you must pledge our L
in his cup of sufferings. Those who saw him on mount Tabor afterwards
were with him in the garden. But fear not—The L is with you—
Neither men nor devils shall hurt you. The sweet communion we have
had with G , and through him with one another, often comforts my
soul. Who knows, but that time may be again repeated? Indeed, I want
words as well as time to express with what thankfulness I desire to
subscribe myself, dear madam,
G. W.
LETTER CLV.
To Captain M.
Dear Sir,
Your’s, &c.
G. W.
LETTER CLVI.
To the Rev. Mr. W. T.
G. W.
LETTER CLVII.
Savannah, Jan. 31, 1740.
My dear Sister,
I Rejoice to hear that you are enabled to see not only the freeness but
eternal duration of G ’s grace. Till the sinner is convinced of this, I
am persuaded he can neither work from a principle of true love, nor
give J C the honour due unto his name. He must always be
making his salvation to depend partly at least on his own doings; “If I do
so and so, J C will give me his grace:” But can any believer
who knows himself, help confessing, that after he had received grace, he
should have finally fallen from it, had the continuance of it depended on
his own will? Indeed, my dear Sister, nothing so much comforts my own
soul as the thought that G will never leave me nor forsake me; if he
does, it must be for my unworthiness: But on that account it cannot be;
for he never chose me on account of my unworthiness. He loved me
freely, he prevented me by his grace; he chose me from eternity, he
called me in time, and I am persuaded will keep me till time shall be no
more.—This consideration makes my faith to work by love. Now, I can
live not barely upon my frames, which notwithstanding are blessed
things, but on the promises. Now, I can go on my way rejoicing, and,
amidst all dejections, lift up my head in prospect of a certain and
exceeding weight of glory. Though I fall, I know I shall rise again; for he
that is brought truly to believe on J C , his faith shall never die.
The L J will not suffer to be lost the purchase of his blood. He
knew for whom he died, and neither men nor devils shall ever pluck
them out of his hands. Such as have been taught most of G , I find, are
thus minded. And I am persuaded were the effects of our L ’s
redemption to depend on a man’s own compliance, or was the
continuance of G ’s grace to depend solely on man’s improvement,
J C would have died in vain. Adam could not stand in paradise
when left to his own free-will, how then can we? No, blessed be G ,
our salvation is put into better hands than our own. J C has
purchased not only wisdom, righteousness, and sanctification, but also
eternal redemption for us. Let this thought, my dear Sister, lift up our
hands when they hang down, and strengthen our feeble knees; G ’s
gifts and callings are without repentance. There is no condemnation to
them that are truly in C J . And I write thus peremptorily to you,
because I find now you are able to bear it.—Blessed be G ! my dear
Sister, flesh and blood has not revealed this unto you. I hope ere long our
brethren will lay all carnal reasoning aside, and see and preach the truth
in this respect, as it is in J . My kindest love to your sister.—What I
write to one, I write to both. The L direct your going in his way, and
cause you to continue instant in prayer for
G. W.
LETTER CLVIII.
To Mrs. Elizabeth W――.
My dear Sister,
I Have been just reading over your letter, and felt a sweet sympathy
with the writer. Oh that it may increase till we are filled with all the
fulness of G ! Some passages in your letter were dangerous to my
soul. Whenever you see any growth of grace, pray that I may grow in
humility in particular. Oh that I was lowly in heart! Honour and
dishonour, good report and evil report would then be alike, and prove a
furtherance to me in my christian cause.—I believe the time is shortly
coming in which I am to endure something for my L and Master;
then will I cry out, Who is on the L ’s side? Nothing supports me
under a prospect of a trying time, so much as a sense of G ’s
everlasting love. I am persuaded, that neither men nor devils shall ever
pluck me out of his Almighty hands. Let this support you, my dear
Sister, in your change of life. Wherever you are, I am confident you will
have reason to say, “Surely G is in this place.” That you may wax
stronger and stronger, and ripen daily for glory, is the hearty prayer of
LETTER CLIX.
To Mr. J. N.
Dear Sir,
I Hope you will excuse my not answering your kind letter sooner.—The
many avocations that at present surround me, prevented it. I rejoice to
hear that our L J is getting himself the victory in the hearts of
poor sinners. I hope many will now rejoice in his salvation. One good
sign is, that he has employed the meanest, as well as vilest wretch, that
he ever yet sent forth.—When I hear that any good is done by my
unworthy hands, it almost makes me to blush.—Oh that I could humble
myself in the dust, that the L alone may be exalted in his strength. I
purpose to revisit New-York at the appointed time. You told me, “Our
L has not sent me into his vineyard at my own charge.” Indeed, I
always find he furnishes me with things convenient: Nay, he is often so
abundant in goodness and truth, that I am obliged to cry out in holy
admiration, “My L and my G !” Dear Sir, help me to be thankful.
Blessed be G , the Orphan-house affairs succeed well. Many souls will
be redeemed by it from temporal, and I trust, from eternal bondage. I
have taken in upwards of twenty children already, and I take in more
daily.—I am building a large house, have many servants, and a good
stock of cattle. It will cost much money.—But our L will see to that.
My friends at New-York will assist me when I come amongst them. Oh
that my coming may be in the fulness of the blessings of the gospel of
peace! I am persuaded, you will not be wanting in your prayers on behalf
of, dear Sir,
LETTER CLX.
To Mrs. Elizabeth D――.
My dear Sister in C ,
I Generally observe that whom the L loves, for the most part he
keeps from preferment.—Your grandmother cannot do any more than
she is permitted. It is G ’s free grace alone, that has made the
difference between us and others. Oh that we were duly sensible of
electing love! Indeed it must necessarily constrain us to obedience. I am
glad you like Boehm. His works are truly evangelical, and afford sweet
nourishment to the new-born soul. The nearer we come to G , the
better we shall relish searching books. It is an evident sign of a false
heart, when it is unwilling to be probed. Blessed be G , you are not
thus minded. I trust the L J has apprehended you, and will
henceforward never let you go. O that I may hear of your growth in
grace, and of your zeal for the L H .—You do well to go about
doing good; your Master did so before you. Dare, dear Miss, to follow
his good example, and never fear the revilings of men. Set your face as a
flint against all the adversaries of our L ; for shortly you shall tread
all your enemies under feet. I beseech you by the mercies of G in
C J our Saviour, to keep up a close walk and communion with
G . Nothing else can preserve you from idols; and you know when
once the soul is off its watch, the devil makes sad ravages in it. There is
nothing I dread more than having my heart drawn away by earthly
objects.—When that time comes, it will be over with me indeed; I must
then bid adieu to zeal and fervency of spirit, and in effect, bid the L
J to depart from me. For alas, what room can there be for G , when
a rival hath taken possession of the heart? Oh my dear Sister, pray that
no such evil may befal me. My blood runs cold at the very thought
thereof. I cannot, indeed; I cannot away with it. In a multiplicity of
business, have I wrote you these lines. I thank you for your kind letter,
and hope I shall always retain a grateful sense of the many favours I have
received from your dear family. My kindest respects attend your sister; I
long to hear of her being brought into the glorious liberty of the children
of G . How does your father? Oh that he may have a well-grounded
interest in C ! How does my dear brother Charles? I pray G to fill
him with all joy and peace in believing. And how does your little sister?
Dearest Redeemer, keep her unspotted from the world! My heart is now
full. Writing quickens me. I could almost drop a tear, and wish myself,
for a moment or two, in England. But hush, nature: G here pours
down his blessings on
G. W.
LETTER CLXI.
To the Rev. Mr. D. R.