473,763 Members | 5,610 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Are there books about C data structures?

Hallo to everyone.
This fall I am going to start data structures as a part of C language
course. The problem is I could not find any satisfying tutorial about
structures in C. There are plenty of books about data structures in C+
+ etc., could anyone please recommend me such a C -specific book ? And
another question: are data structures (like stack, structure etc.)
used in C++ identical to those in C and is it possible to use C++
books to learn about the structures in C?

Aug 22 '07
29 6354
On Aug 23, 6:12 pm, Eric Sosman <esos...@ieee-dot-org.invalidwrot e:
Keith Thompson wrote:
user923005 <dcor...@connx. comwrites:
[...]
Probably, the best book to learn algorithms and data structures is the
CLR book.
I don't know what "CLR" means, though a Google search leads me to
guess that you mean "common language runtime". Can you be more
specific?
[...]
Every programmer on earth should own his own set of TAOCP.
That's The Art of Computer Programming, by Knuth (some people here
might not recognize the abbreviation).

Those who don't can always ggl it.
if u cn rd ths msg u cn bcm a sec & gt a gd jb.

Aug 24 '07 #21
[comp.lang.c] Eric Sosman <es*****@ieee-dot-org.invalidwrot e:
Those who don't can always ggl it.
Is that "giggle"? (That wouldn't be a bad name for a search engine
either, but alas, the domain has been appropriated by a purveyor of
infant paraphernalia.)

--
C. Benson Manica | I appreciate all corrections, polite or otherwise.
cbmanica(at)gma il.com |
----------------------| I do not currently read any posts posted through
sdf.lonestar.or g | Google groups, due to rampant unchecked spam.
Aug 24 '07 #22

"Flash Gordon" <sp**@flash-gordon.me.ukwro te in message
news:6s******** ****@news.flash-gordon.me.uk...
Malcolm McLean wrote, On 23/08/07 20:29:
>>
"osmium" <r1********@com cast.netwrote in message
news:5j******* ******@mid.indi vidual.net...
>> But I am opposed to the general notion of language oriented books
anyway, they use the language du jour. Algorithms are permanent,
languages are transient.
If you use a very conservative subset of C then you solve most of the
problems, but not all of them, because standards committees sometimes
break perfectly good constructs.

It does not have to be very conservative since the committee generally
tries to avoid breaking too much existing code. Avoid things most people
would consider bad practice, and the mostly leaves the risk of new
keywords being added.
But they can't make their decrees stick. In the end this can only lead to
the abandonment of the standard. My Microsoft compiler already deprecates
the string library.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Aug 24 '07 #23
Malcolm McLean wrote, On 24/08/07 22:15:
>
"Flash Gordon" <sp**@flash-gordon.me.ukwro te in message
news:6s******** ****@news.flash-gordon.me.uk...
>Malcolm McLean wrote, On 23/08/07 20:29:
>>>
"osmium" <r1********@com cast.netwrote in message
news:5j****** *******@mid.ind ividual.net...
But I am opposed to the general notion of language oriented books
anyway, they use the language du jour. Algorithms are permanent,
languages are transient.
If you use a very conservative subset of C then you solve most of the
problems, but not all of them, because standards committees sometimes
break perfectly good constructs.

It does not have to be very conservative since the committee generally
tries to avoid breaking too much existing code. Avoid things most
people would consider bad practice, and the mostly leaves the risk of
new keywords being added.
But they can't make their decrees stick. In the end this can only lead
to the abandonment of the standard. My Microsoft compiler already
deprecates the string library.
Make up your mind whether you are arguing that the standards committee
will break the code or whether implementations will break it.

The current version of MSVC still compiles C programs conforming to C90,
and if prodded appropriately will not generate those warnings. I think
that MS would find themselves forced to back off if they ever actually
removed the standard functions they generate those warnings for, just as
a few years back they were forced to add in proper backwards
compatibility for a version of Word that lacked it.
--
Flash Gordon
Aug 24 '07 #24
Christopher Benson-Manica wrote:
[comp.lang.c] Eric Sosman <es*****@ieee-dot-org.invalidwrot e:
> Those who don't can always ggl it.

Is that "giggle"? (That wouldn't be a bad name for a search engine
either, but alas, the domain has been appropriated by a purveyor of
infant paraphernalia.)
<off-topic>

When Google first appeared on the scene, I supposed that
the founders were aficionados of 1920's popular entertainment:
"Barney Google and Snuffy Smith," "Barney Google with the goo-
goo- googly eyes," and so on.

It came as a disappointment when I read somewhere that the
name originated as a misspelling of "googol."

But maybe that's just a cover story to prevent us from
realizing we're being taken over by Cossacks. Isn't one of
the founders named Sergei? Maybe his family hails from
Sorochyntsi.

</off-topic>

--
Eric Sosman
es*****@ieee-dot-org.invalid
Aug 25 '07 #25
Malcolm McLean said:

<snip>
But [ISO] can't make their decrees stick. In the end this can
only lead to the abandonment of the standard. My Microsoft
compiler already deprecates the string library.
Then ditch your Microsoft compiler. There are plenty of other high
quality compilers available for your platform, some of them free. For
parochialism to triumph, it is necessary only for cross-platform
developers to do nothing.

--
Richard Heathfield <http://www.cpax.org.uk >
Email: -www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Aug 25 '07 #26
Keith Thompson wrote:
user923005 <dc*****@connx. comwrites:
[...]
>Probably, the best book to learn algorithms and data structures
is the CLR book.

I don't know what "CLR" means, though a Google search leads me to
guess that you mean "common language runtime". Can you be more
specific?
Well, barring other evidence, I would assume it refers to a
pushbutton or routine that initializes something to an 'empty'
condition, such as blanking a screen. :-)

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net>

--
Posted via a free Usenet account from http://www.teranews.com

Aug 25 '07 #27

"Ben Bacarisse" <be********@bsb .me.ukwrote in message
news:87******** ****@bsb.me.uk. ..
I probably have little credit in your bank, but if there is any left,
draw on it now and consider this question: does the world need yet
another X toolkit? I think not.
That's a good question. The idea of Baby X is that it is simple to use, at
the cost of not having much flexibility, and is also simple in code.
Initially it seemed to go very well, you can have scrollbars, buttons, edit
fields etc, all perfectly serviceable, in a few lines. Unfortunately adding
containers broke the premise that "each object is a window" of its own type,
whilst fonts and colours make things more complicated, and introduce
dependencies of the objects on each other. As I add functionality, it
becomes progressively more and more difficult to descibe how to write your
own BabyX component. Eventually it might end up as just another toolkit, so
the question becomes why not just use GTX?
>
What would be hugely useful is a simple C API to a common abstraction
(a simple subset, presumably) of the basic GUI functionality with
small back ends that implement this natively in Gtk, Qt, Win32 and
anything else anyone fancies. I don't know if this is really
possible, but if it is it would benefit everyone doing cross-platform
development of GUI C programs.
It is easy to define an interface. All you need is openwindow(widt h,
height), closewindow(), setpixel(x, y, colour), arguably getpixel(x, y),
querymouse(win, &x, &y), and squeaksqueak( void (*fptr)(int buttons, void
*ptr)), defiining a callback for mouse input, and kbhit() / getch() for the
keyboard.

In practise it is difficult to get this to work on all systems, because they
evilly take control of the main loop. That was another motive for writing
Baby X. Then you've got the problem of colour depth, not so severe now but a
real nuisance in the past. Finally you really need some hook into the
systems fonts. You can get output without it, but non-game users like to see
Ariel and Times New Roman.

Another problem again no longer as severe as it was, is that on some systems
there isn't enough memory to hold backing store for every window. So windows
need to be regenrated on demand.

The of course you can't write a non-trival GUI with just those functions,
you need sub-windows and other facilities on top. However you can implement
everythign in terms of simple pixel operations. Java's Swing does just
that - the previous approach, providing interfaces to native graphics calls,
failed.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Aug 25 '07 #28
"Malcolm McLean" <re*******@btin ternet.comwrote :
"Flash Gordon" <sp**@flash-gordon.me.ukwro te in message
Malcolm McLean wrote, On 23/08/07 20:29:
>
It does not have to be very conservative since the committee generally
tries to avoid breaking too much existing code. Avoid things most people
would consider bad practice, and the mostly leaves the risk of new
keywords being added.
But they can't make their decrees stick. In the end this can only lead to
the abandonment of the standard. My Microsoft compiler already deprecates
the string library.
Yes, but that's a politico-economical weapon, intended to lock you
deeper and deeper into M$'s broken "safe" extensions, not a rational
decision. It really has nothing to do with what the committee should and
should not do, except perhaps as an argument that the committee should
not give in to those bullies and should have nothing more to do with
that extension.

Richard
Aug 27 '07 #29

"Richard Bos" <rl*@hoekstra-uitgeverij.nlwr ote in message
news:46******** ********@news.x s4all.nl...
"Malcolm McLean" <re*******@btin ternet.comwrote :
>"Flash Gordon" <sp**@flash-gordon.me.ukwro te in message
Malcolm McLean wrote, On 23/08/07 20:29:

It does not have to be very conservative since the committee generally
tries to avoid breaking too much existing code. Avoid things most
people
would consider bad practice, and the mostly leaves the risk of new
keywords being added.
But they can't make their decrees stick. In the end this can only lead to
the abandonment of the standard. My Microsoft compiler already
deprecates the string library.

Yes, but that's a politico-economical weapon, intended to lock you
deeper and deeper into M$'s broken "safe" extensions, not a rational
decision. It really has nothing to do with what the committee should and
should not do, except perhaps as an argument that the committee should
not give in to those bullies and should have nothing more to do with
that extension.
Or rather it is a rational decision, if you happen to have Microsoft shares,
but not from a software engineering perspective.
You are right, we need to fight back, to protect our language.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Aug 27 '07 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

25
3050
by: tnrABC | last post by:
The approximately 100 books below are for sale. Mostly a selection of mathematics (numerical analysis mostly), computing science (graphics, ai, programming techniques, theory, compilers, operating systems, Unix, languages (C, C++, Smalltalk, Java, Pascal, Modula etc.), and a sprinkling of others (e.g. surviving as a consultant, writing resumes, and so on). Most are either new or in as-new condition. Some older ones have begun to attract...
3
1418
by: Michael | last post by:
Guys, I've just finished reading Design Patterns and have been over whelmed by how clever some people are :-) Are there any other books on a similar vein worth reading, Managing large scale projects, readable data structures and extensibility. Also when you start a progrm project from scratch, how do you lay it out? I've been drawing object interactions on a a0 piece of paper, is this the way others do it, or is there any good software...
4
3862
by: Thomas Paul Diffenbach | last post by:
Can anyone point me to an open source library of /statically allocated/ data structures? I'm writing some code that would benefit from trees, preferably self balancing, but on an embedded system that doesn't offer dynamic memory allocation (to be clear: no malloc, no realloc), and with rather tight memory constraints. Writing my own malloc to do dynamic allocation from some static pool isn't really an option, for various reasons, not...
13
2756
by: James Harris | last post by:
Hi, Can someone recommend a book that will teach me how to approach C programming so that code is modularised, will compile for different environments (such as variations of Unix and Windows), will be robust etc. As an example, I am developing a BSD Sockets suite which I want to run under various Unixes, including the Zaurus version of Linux, and also run parts of it under Windows. My thought is to
10
4786
by: Bart Goeman | last post by:
Hi, I have a question about how to put redundant information in data structures, initialized at compile time. This is often necessary for performance reasons and can't be done at run time (data structures are read only) Ideally one should be able to put the redundant information there automatically so no mistakes are possible, but in a lot of case I see no way how to do it.
11
2124
by: manochavishal | last post by:
Hi, Can anyone recommend Book on C which covers all the advanced topics. Looking for the most advanced book on C. i have gone thru Expert C Programming. Something on those lines with multi threading and algorithms. Cheers Vishal
3
2316
by: osp | last post by:
hi to every one.... i just started out with c++ and i think i am doing well.i use Robert Laffore to study. which book should i use for data structures ? please help. thank you with regards osp
11
3778
by: efrat | last post by:
Hello, I'm planning to use Python in order to teach a DSA (data structures and algorithms) course in an academic institute. If you could help out with the following questions, I'd sure appreciate it: 1. What exactly is a Python list? If one writes a, then is the complexity Theta(n)? If this is O(1), then why was the name "list" chosen? If this is indeed Theta(n), then what alternative should be used? (array does not seem suited for...
41
1967
by: istillshine | last post by:
Questions for the major contributors to comp.lang.c. What C books do you have? What C books have you read? Which algorithm book is your favorite? What resources that you find particularly useful, beside comp.lang.c and its FAQ?
0
9563
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9386
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10144
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9997
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7366
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5270
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5405
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3917
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3522
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.