|
eet high."
The engineer says: "I think she's sitting in a puddle."
%
A New Yorker was driving through Berkeley when he saw a big crowd
gathered by the side of the street. Curiousity got the better of him
and he leaned out of his window to ask an onlooker what was going on.
The fellow explained that a protestor against the U.S. position in
South America had doused himself with gasoline and set himself on
fire. "That's terrible," gasped the man. "But why is everyone still
standing around?"
"Well, they're taking up a collection for his wife and kids," the
onlooker explained. "Would you be willing to help?"
"Well, sure," replied the New Yorker. "I suppose I could spare a
gallon or two."
%
... C++ offers even more flexible control over the visibility of member
objects and member functions. Specifically, members may be placed in the
public, private, or protected parts of a class. Members declared in the
public parts are visible to all clients; members declared in the private
parts are fully encapsulated; and members declared in the protected parts
are visible only to the class itself and its subclasses. C++ also supports
the notion of *friends*: cooperative classes that are permitted to see each
other's private parts.
-- Grady Booch, "Object Oriented Design with Applications"
%
A Chicago salesman was about to check into a St. Louis hotel when he noticed
a very charming woman staring admiringly at him. He walked over and spoke
with her for a few minutes, then returned to the front desk, where they checked
in as Mr. and Mrs.
After a very pleasurable three-day stay, the man approached the front
desk and told the clerk he was checking out. In a few minutes, he was handed
a bill for $2500.
"There must be some mistake," the salesman said. "I've been here for
only three days."
"Yes, sir," the clerk replied. "But your wife has been here a month
and a half."
%
A traveling salesman was driving past a farm when he saw a pig with three
wooden legs executing a magnificent series of backflips and cartwheels.
Intrigued, he drove up to the farmhouse, where he found an old farmer
sitting in the yard watching the pig.
"That's quite a pig you have there, sir" said the salesman.
"Sure is, son," the farmer replied. "Why, two years ago, my daughter
was swimming in the lake and bumped her head and damned near drowned, but that
pig swam out and dragged her back to shore."
"Amazing!" the salesman exlaimed.
"And that's not the only thing. Last fall I was cuttin' wood up on
the north forty when a tree fell on me. Pinned me to the ground, it did.
That pig run up and wiggled underneath that tree and lifted it off of me.
Saved my life."
"Fantastic! the salesman said. But tell me, how come the pig ha 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >>
|