Monday, November 13, 2017

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

scott@slp53.sl.home (Scott Lurndal): Nov 13 02:20PM


>That would also appear to be a non sequitur. There are many reasons for
>disliking Windows, but it's had POSIX support since the first NT release
>nearly 25 years ago.
 
as a second class fig-leaf to enable bidding on federal contracts.
"James R. Kuyper" <jameskuyper@verizon.net>: Nov 13 11:18AM -0500

On 11/13/2017 09:20 AM, Scott Lurndal wrote:
>> disliking Windows, but it's had POSIX support since the first NT release
>> nearly 25 years ago.
 
> as a second class fig-leaf to enable bidding on federal contracts.
 
Could you clarify precisely how Windows POSIX support falls short of
being first-class? It's not that I don't believe you - I'm just looking
for details.
scott@slp53.sl.home (Scott Lurndal): Nov 13 05:39PM


>Could you clarify precisely how Windows POSIX support falls short of
>being first-class? It's not that I don't believe you - I'm just looking
>for details.
 
When they did it back in the 90's, they implemented the absolute minimum
possible (IEEE 1003.1-1990). That subsystem was replaced in XP by the
Windows Services for Unix (SFU). SFU was removed from Windows 8 and Server 2012
and is not included in any modern windows release (although windows 10
has the Ubuntu subsystem in the creators edition).
Lynn McGuire <lynnmcguire5@gmail.com>: Nov 13 03:38PM -0600

On 11/11/2017 11:26 AM, Mr. Man-wai Chang wrote:
>> Is there a standard way to convert a string containing a comma to a
>> number ?  atof and strtod do not work with the comma.
 
> Take out the commas then use atoi()?
 
I did that and used atof.
 
double asDouble (const char * str)
{
if (str)
{
char numString [100];
memset (numString, 0, sizeof (numString));
int len = strlen (str);
char * p = numString;
for (int i = 0; i < len; i++)
{
// remove any and all commas such as "4,800.4" before calling atof
if (numString [i] != ',')
{
* p = str [i];
p++;
}
}
return atof (numString);
}
else
return 0.0;
}
 
 
 
double asDouble (std::string string)
{
if (string.size () > 0)
return asDouble (string.c_str ());
else
return 0.0;
}
 
 
Lynn
Keith Thompson <kst-u@mib.org>: Nov 13 02:45PM -0800

> else
> return 0.0;
> }
[...]
 
And did that work? It shouldn't, since `numString [i]` will always be a
null character.
 
Incidentally, atof() does no error checking.
 
--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
Working, but not speaking, for JetHead Development, Inc.
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Paul N <gw7rib@aol.com>: Nov 13 01:50PM -0800

On Sunday, November 12, 2017 at 5:21:43 PM UTC, Real Troll wrote:
> > P
 
> This [] has changed his FROM address so it is time to change the
> filters again.
 
Rick denies that this particular post is from him, and I'm inclined to believe him.
Juha Nieminen <nospam@thanks.invalid>: Nov 13 09:49AM

> I will tell you the truth.
 
Haha! You are quite the joker, aren't you?
Daniel <danielaparker@gmail.com>: Nov 13 08:53AM -0800

On Sunday, November 12, 2017 at 8:26:34 AM UTC-5, Rick C. Hodgin wrote:
 
> Somebody is impersonating me.
 
Does it really matter? The message is more or less the same.
 
Daniel
"Rick C. Hodgin" <rick.c.hodgin@gmail.com>: Nov 13 09:03AM -0800

On Monday, November 13, 2017 at 11:53:20 AM UTC-5, Daniel wrote:
> On Sunday, November 12, 2017 at 8:26:34 AM UTC-5, Rick C. Hodgin wrote:
 
> > Somebody is impersonating me.
 
> Does it really matter? The message is more or less the same.
 
"More or less" ... no. Not even a little bit. The person on this
post says, "My name is Rick C Hodgin, the god of the human world".
 
I am not any kind of god in this world. God has said that we (mankind)
are gods (lower-case 'g'), and within that context we are His children,
but I am not a god.
 
I am flawed Rick, very much in need of forgiveness for my sin, very
much in need of a savior. And I lead you to the very same God that I
myself need.
 
I am not risen above anyone or anything. I am here alongside each of
you, making mistakes every day, coming to God every day in repentance,
asking forgiveness, and seeking His presence in my life.
 
What I teach you is that you must do the same.
 
I teach you not to look at me, or any other man, but to look at God,
to Jesus, for salvation. He alone can set you on the path and teach
you rightly, as you're able to understand, in all things.
 
-----
The reason you think the message is the same is because you only look
at the surface. You do not go beyond your perception of the outer-
only appearance, and examine the true meaning underneath that perception.
 
It is the barrier that keeps people from faith. They will not seek the
truth, but are content to believe the lie, to remain at the place of
where they think they are right, because there in that place they can
engage in their many life things and be comfortable and justified in
them, because the true light of truth would reveal them for what they
are: sin in God's sight.
 
As I have said, God will not send anyone to Hell. People, through their
own intense love of sin, will send themselves to Hell, because they would
not put sin away, would not take heed of the warning, would not listen to
God and acknowledge the truth.
 
The message is very much different, because mine points you to Christ,
and explains the reason why ... it's because of who He is, and because
of who we all are.
 
--
Rick C. Hodgin
Juha Nieminen <nospam@thanks.invalid>: Nov 13 09:47AM

> Thanks, but just thinking another thing: is is a good idea at all using
> enums as (option) flags? I read some say online that should use
> constants instead.
 
Constants of what type, exactly?
 
The good thing about enums is that they can be made strongly typed.
If you wanted to make an integral constant "strongly typed" (ie. you
want to be able to, for example, declare a function that takes a value
of that type and nothing else), you'll need to write your own class
which, while possible, is more work.
bitrex <bitrex@de.lete.earthlink.net>: Nov 12 06:27PM -0500

On 11/12/2017 06:18 PM, bitrex wrote:
> subwoofers speeding around drunkenly weaving in and out through traffic,
> tailgating, and making general nuisances of themselves. Another one off
> the road (hopefully) forever is a good thing
 
He'll be able to hail a robotaxi when he gets out of prison sometime
around 2026.
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: