Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > C Programming > Linked list need help...

Reply
Thread Tools

Linked list need help...

 
 
pete
Guest
Posts: n/a
 
      10-09-2005
delahaye.emmanuel wrote:
>
> __frank__ a écrit :
> > pete ha scritto:
> >
> >> #ifndef H_LIST
> >> #define H_LIST

>
> > Why the above directives?

>
> It's a guard against multiple inclusions.
>
> When you write a lbrary,
> you can't know in advance how will the headers
> be included by the users. This guard prevents against multiple
> inclusions into a same compile unit.


The spelling of "__frank__", combined with his question,
causes me to wonder if __frank__ is reading system headers
to find examples of good code.

So, I will advise that
identifiers in system headers
use reserved naming conventions,
such as two leading __underscores,
with the implication being that
the programmer can and should avoid naming conflicts
by not using identifiers begining with two uderscores.

The rules for when you should and shouldn't begin
identifiers with _underscores are complicated enough,
so that when writing C code, it's simplest to remember
just not to begin any identifiers with any underscores.

--
pete
 
Reply With Quote
 
 
 
 
Alexei A. Frounze
Guest
Posts: n/a
 
      10-09-2005
"Mabden" <mabden@sbc_global.net> wrote in message
news:gl62f.10$...
> "Alexei A. Frounze" <> wrote in message

....
> > it wasn't quick). And there were questions going far beyond simple

> list
> > reversal. If it's (still) important to you, do the same. At least give

> it a
> > good try, crack your brains solving them. And it's best if you do it

> w/o
> > external help -- that's how you can make your head work and see what

> you
> > can.

>
> "see what you can." Can WHAT?!!


What you can *do*. It often happens that you don't know what you can do and
what you can't until you try doing it. Sometimes you think the problem is
simple but when you start working on it, you change the opinion. The
opposite is also possible. Attempting to solve problems tells you what and
how you can do and tells you what you should do about the things that you
can't...

Alex


 
Reply With Quote
 
 
 
 
Alan Balmer
Guest
Posts: n/a
 
      10-10-2005
On 8 Oct 2005 10:08:09 -0700, "XXXXXX.working.in.my.blood"
<> wrote:

>hi all,
>i need help with linked lists...
>the problem is this, "reverse the contents of a singly linked list
>without using a temporary node"...


Why would you want to do that?

>solution with code will be appreciated...


Give us the email address of your teacher and we'll send it direct.
--
Al Balmer
Balmer Consulting

 
Reply With Quote
 
Jaspreet
Guest
Posts: n/a
 
      10-10-2005

XXXXXX.working.in.my.blood wrote:
> hi all,
> i need help with linked lists...
> the problem is this, "reverse the contents of a singly linked list
> without using a temporary node"...
> solution with code will be appreciated...


Hi

Proper English please. Try to make the 1st character of a sentence in
capitals. Get your keyboard repaired. There seems to be something wrong
with the dot ('.') key. It alwyas seems to get pressed thrice.

As for coming to the problem, try and solve it yourself. Please show us
what you attempted and then one of the members would be able to help
you further.

Thanks and have a wonderfuld day.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Airplane Program with Linked Lists. The linked list portion is veryconfusing to me. jawdoc C++ 9 03-10-2008 03:38 AM
Linked list within a linked list joshd C++ 12 10-02-2006 08:57 AM
Linked list, New try (was:Linked list, no out put,help) fool C Programming 14 07-03-2006 12:29 AM
Generating a char* from a linked list of linked lists Chris Ritchey C++ 7 07-10-2003 10:12 PM
Generating a char* from a linked list of linked lists Chris Ritchey C Programming 7 07-10-2003 10:12 PM



Advertisments