Saturday, March 21, 2015

Digest for comp.lang.c++@googlegroups.com - 10 updates in 5 topics

woodbrian77@gmail.com: Mar 21 02:06PM -0700

On Thursday, March 19, 2015 at 2:00:43 PM UTC-5, David Brown wrote:
> C++, give talks on it, and generally show that he is skilled at it and
> has C++ as his single major interest in his life and work. Then maybe
> C++ developers can look to him as a "visionary" for C++.
 
Here's a quote from Yeshua (aka Jesus):
 
"The poor you will always have with you, but you will not
always have Me." Matthew 26:11
 
I'm a representative of His. I can give talks, but I'm
not claiming any know-how. G-d has been helping me all
the way.
 
Here's a story from the Gospel of John. It takes place
after Yeshua has been crucified and resurrected.
 
 
Early in the morning, Yeshua stood on the shore, but the
disciples did not realize that it was Yeshua.
 
He called out to them, "Friends, haven't you any fish?"
 
"No," they answered.
 
He said, "Throw your net on the right side of the boat
and you will find some." When they did, they were unable
to haul the net in because of the large number of fish.
 
Then the disciple whom Yeshua loved said to Peter, "It is
the L-rd!" As soon as Simon Peter heard him say, "It is
the L-rd," he wrapped his outer garment around him (for
he had taken it off) and jumped into the water.
 
----------------------------------------------------
 
They had been fishing all night with poor results.
Yeshua found them and told them what to do. They were
experienced fishermen, but they were willing to take
advice from someone they didn't recognize. Why listen
to a guy they didn't recognize? Things weren't going
well for them so I guess they decided "Why not?"

> person. Just don't expect anyone else to have the same opinions, or let
> your religious beliefs affect their practical reality. Religion is a
> personal matter.)
 
I'm letting others know the source of my help. He likes
helping people.
 
Brian
Ebenezer Enterprises
http://webEbenezer.net
Robert Wessel <robertwessel2@yahoo.com>: Mar 21 04:55PM -0500


>He said, "Throw your net on the right side of the boat
>and you will find some." When they did, they were unable
>to haul the net in because of the large number of fish.
 
 
That Jesus is *such* a practical joker. The poor guys have no fish,
then he fills their net with so many fish they can't haul it in, so
they *still* have no fish, and have probably lost their net in the
process.
"محمد رجب" <md.rg8910@gmail.com>: Mar 21 12:03PM -0700

#include<iostream.h>
main( )
{ int n = 4;
switch(n)
{case 2: cout << "ZZZ\n";
case 3: n=n*5; cout<<"AAA\n";
break;
case 4: n=n/2; cout<<"BBB\n";
case 5: n=n%2; cout<<"CCC\n";
default: cout<<"DDD\n";} }
Paavo Helde <myfirstname@osa.pri.ee>: Mar 21 02:27PM -0500

=?UTF-8?B?2YXYrdmF2K8g2LHYrNio?= <md.rg8910@gmail.com> wrote in
> case 4: n=n/2; cout<<"BBB\n";
> case 5: n=n%2; cout<<"CCC\n";
> default: cout<<"DDD\n";} }
 
This program is not valid C++, so it is up to the implementation if it will
have any output. However, I think no compiler version released in the last
15 years will compile it, so the practical answer would be "no output".
 
hth
Paavo
"Lőrinczy Zsigmond" <nospam@for.me>: Mar 21 08:32PM +0100

On 2015.03.21. 20:03, محمد رجب wrote:
> case 4: n=n/2; cout<<"BBB\n";
> case 5: n=n%2; cout<<"CCC\n";
> default: cout<<"DDD\n";} }
 
Well, take you guess, then try it.
My guess:
 
BBB
CCC
DDD
 
reason: lack of 'break' statements.
JiiPee <no@notvalid.com>: Mar 21 07:33PM

On 21/03/2015 19:27, Paavo Helde wrote:
> 15 years will compile it, so the practical answer would be "no output".
 
> hth
> Paavo
 
yes agree.... no output. heh
"Lőrinczy Zsigmond" <nospam@for.me>: Mar 21 09:01PM +0100

> CCC
> DDD
 
> reason: lack of 'break' statements.
 
 
BCC5.5 proved me right.
"محمد رجب" <md.rg8910@gmail.com>: Mar 21 12:01PM -0700

#include<iostream.h> BBB
main( ) CCC
{ int n = 4; DDD
switch(n)
{case 2: cout << "ZZZ\n";
case 3: n=n*5; cout<<"AAA\n";
break;
case 4: n=n/2; cout<<"BBB\n";
case 5: n=n%2; cout<<"CCC\n";
default: cout<<"DDD\n";} }
Jorgen Grahn <grahn+nntp@snipabacken.se>: Mar 21 03:33PM

On Fri, 2015-03-20, Öö Tiib wrote:
> will say "efficiency", because only 10% are capable of measuring it.
> So solution to your problems is like Jorgen said, to have someone around
> who has experience with efficiency ... and that in style of C++.
 
For the record, I was unclear when I wrote "when you need efficiency
you need to have someone around who's had experience with it" above.
I meant we could write most C++ code as if it was Python or something.
Not avoid heap allocation, not avoid copying objects etc -- ignoring
all the performance-oriented tricks we have been taught. We would
still meet the performance requirements ... but then we would be badly
prepared in the relatively small areas where we /do/ need performance.
 
I'm not necessarily disagreeing with what you write, except I hope
more than 10% know how to use a profiler (if they don't we should
teach them).
 
/Jorgen
 
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
Bo Persson <bop@gmb.dk>: Mar 21 12:19PM +0100

> government got into it. I'm not sure why anyone
> believed Obama when he said things like, "If you
> like your doctor you can keep your doctor."
 
Some of you had decent healthcare, and some of you didn't have any.
Those of us living elsewhere can't see why this was good.
 
 
Bo Persson
You received this digest because you're subscribed to updates for this group. You can change your settings on the group membership page.
To unsubscribe from this group and stop receiving emails from it send an email to comp.lang.c+++unsubscribe@googlegroups.com.

No comments: