Re: passing a string to a C++ function
- From: "Lawrence Groves" <lgroves@xxxxxxxxxxxxxxxxx>
- Date: Wed, 12 Oct 2005 14:23:03 +0100
"Alexander Grigoriev" <alegr@xxxxxxxxxxxxx> wrote in message
news:uk9PrpOzFHA.2960@xxxxxxxxxxxxxxxxxxxxxxx
> Unfortunately, K&R style is in general horrible. There is nothing wrong
> with this particular line, but you should not take their code as example.
I don't agree. Before C++ came along it was the defacto standard. How can
you say they have bad style or are no good for examples? They invented the
language so who better to follow?
Ok, C++ came later and so follows different rules in lots of cases. But
seeing as it was based on C, I wondered why Straustrup chose a different
method to get a pointer into an array, since I assume that he was first to
do it in C++!
Loz.
.
- Follow-Ups:
- Re: passing a string to a C++ function
- From: Igor Tandetnik
- Re: passing a string to a C++ function
- References:
- passing a string to a C++ function
- From: Leo
- Re: passing a string to a C++ function
- From: Victor Bazarov
- Re: passing a string to a C++ function
- From: Leo
- Re: passing a string to a C++ function
- From: David Webber
- Re: passing a string to a C++ function
- From: Leo
- Re: passing a string to a C++ function
- From: David Webber
- Re: passing a string to a C++ function
- From: Leo
- Re: passing a string to a C++ function
- From: Brian Muth
- Re: passing a string to a C++ function
- From: Lawrence Groves
- Re: passing a string to a C++ function
- From: Tom Serface
- Re: passing a string to a C++ function
- From: Lawrence Groves
- Re: passing a string to a C++ function
- From: Alexander Grigoriev
- passing a string to a C++ function
- Prev by Date: Re: Making a library
- Next by Date: How to avoid c1076 compiler error
- Previous by thread: Re: passing a string to a C++ function
- Next by thread: Re: passing a string to a C++ function
- Index(es):
Relevant Pages
|