Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #2575

Re: linked list language

From treetaxi <noreply@treetaxi.invalid>
Newsgroups comp.programming
Subject Re: linked list language
Date 2012-12-02 22:22 -0700
Organization A noiseless patient Spider
Message-ID <k9hcuj$6ba$1@dont-email.me> (permalink)
References <k81cle$gol$1@dont-email.me> <0.d448978e18debb49713b.20121115013001GMT.871ufvhcva.fsf@bsb.me.uk> <k81i8b$aqb$1@dont-email.me>

Show all headers | View raw


On 11/14/2012 06:58 PM, Bill Cunningham wrote:
> Ben Bacarisse wrote:
>> "Bill Cunningham" <nospam@nspam.invalid> writes:
>>
>>>     Does anyone have an opinion on whether linked lists are easier
>>> to do in C or C++?
>>
>> That's an odd question.  C++ has standard container types including a
>> list type, so in that sense it's easier in C++: there's nothing to do
>> other than use them.
> 
>     I don't know what container types or list types mean. I was going to 
> think of a second language after C and considered Perl. Whew. Too much for 
> me. C++ is probably most C like.
>     I think I frustrate alot of programmers on usenet because they're 
> professionals. I'm a hobbyist and have to learn C as I go and algorithms 
> forget it. What kind of programming can you do without them. I have to move 
> at my own pace. But I'll never become a CS student professionally. I'll look 
> up list container.
> 
> Bill
> 
> 

C++ isn't "really" a second language, as knowledge of C is usually a
prerequisite to most C++ courses.

Basically the functions and subroutines of C become 'methods' of C++
objects which which restrict access and provide a separate namespace
through encapsulation.

So it's easier to knock out a quick C subroutine, and the code is more
efficient for real-time apps, but it's easier to re-use C++ code because
of its modular design.

Although it's been used for just about anything, I consider Perl as
basically a text-handling language.  It's the best tool I know of for
doing things like stripping html code and looking for keywords.  I used
it to write a utility that automatically read the used car ads every day
and filter out the ones I would be interested in.  I'd never even try
that in C.

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

linked list language "Bill Cunningham" <nospam@nspam.invalid> - 2012-11-14 19:23 -0500
  Re: linked list language Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-11-15 01:30 +0000
    Re: linked list language "Bill Cunningham" <billcun@suddenlink.net> - 2012-11-14 20:58 -0500
      Re: linked list language treetaxi <noreply@treetaxi.invalid> - 2012-12-02 22:22 -0700
        Re: linked list language "Aaron W.  Hsu" <arcfide@sacrideo.us> - 2012-12-03 01:53 -0500
    Re: linked list language "Bill Cunningham" <billcun@suddenlink.net> - 2012-11-14 21:06 -0500

csiph-web