473,883 Members | 1,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

A C tutorial

There is a C tutorial at
http://www.cs.virginia.edu/~lcc-win32
It is written to go with the compiler, available
at the same URL.

I have added quite a bit of material, and I would be
glad if people in this group give it a try and tell me if
I am saying nonsense somewhere.

Beware that I am not very orthodox, hence my tutorial
(and the associated compiler) is not just a tutorial about
ANSI C, but covers things like operator overloading and
other heresies :-)

And since it is running in a specific OS, windows
programming makes for quite a lot of pages. If you
use another OS however, the first part is (almost)
straight C.

jacob

Nov 14 '05
156 7744
Da*****@cern.ch (Dan Pop) writes:
In <c0************ *@news.t-online.com> Martin Dickopp <ex************ ****@zero-based.org> writes:
You seem to believe that only things which have previously been claimed
or implied can be disproven. That is not the case.
I merely don't see the point in disproving things no one has claimed
or implied.


That you don't see the point doesn't mean there isn't one. :)

Maybe someone has found my posting interesting, maybe nobody has. In the
latter case, it would indeed have been a waste of time and bandwidth.
That's the risk when participating in an off-topic discussion (which I
admit being guilty of).
Unless you enjoy talking alone...


Someone has replied to every single of my postings in this subthread so
far - you. :)

Martin
Nov 14 '05 #101

In article <c0**********@s unnews.cern.ch> , Da*****@cern.ch (Dan Pop) writes:
In <c0**********@t itan.btinternet .com> Richard Heathfield <do******@addre ss.co.uk.invali d> writes:
jacob navia wrote:
But PDF is a widely used format,


Oh, I know, I know. That doesn't mean it necessarily /should/ be.


Name one document format with a public specification that should be
used instead, allowing for comparable quality of the printed output.


I'm with Richard on this one. I rarely print PDFs. I frequently view
them on screen, and I almost never encounter one which any reader,
including Adobe's bloated and insecure Acrobat Reader (or even more
bloated and insecure Acrobat), will present in a manner that's both
convenient and comfortable to read. That's across a wide range of
display hardware; the display I use most often these days is an LCD
screen with 1280x1024 resolution, and most PDFs still render with
unreadably small fonts if I want to get a decent portion of the text
on-screen. (In particular, I have very little patience for reading
any document that requires horizontal scrolling.)

And I have very rarely encountered a PDF document which could not
have conveyed the same content very nicely in HTML, and let *my*
renderer of choice format it the way *I* want it.

That, for me, is enough to hate PDF. Perhaps the tool itself is a
good one, but it's used far widely than it should be.

--
Michael Wojcik mi************@ microfocus.com

But I still wouldn't count out the monkey - modern novelists being as
unpredictable as they are at times. -- Marilyn J. Miller
Nov 14 '05 #102
In <c0********@ene ws4.newsguy.com > mw*****@newsguy .com (Michael Wojcik) writes:

And I have very rarely encountered a PDF document which could not
have conveyed the same content very nicely in HTML, and let *my*
renderer of choice format it the way *I* want it.


The document formatting is part of the author's work and it is his choice
whether to keep a strict control over it or delegate the control to the
user.

The 1 to 1 correspondence between what you see on the screen and what you
get printed is a big bonus when selectively printing parts of the
document, which is what I often do. And high resolution screens are
commonly available these days (1050x1400 for laptops, 1200x1600 for
desktops) for people who want to enjoy the quality of a good PDF
renderer.

Last but not least, having the complete document, which can be a thick
book, in a single file of reasonable size is extremely convenient.

I don't like PDF for documents where plain text would do equally well,
like most of the C standard. But once multiple fonts are a *real* need,
as well as pictures and complex diagrams, not to mention *proper* support
for languages other than English and whatever can fit into Latin-1, I have
yet to see something better than PDF.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #103
In <c0************ *@news.t-online.com> Martin Dickopp <ex************ ****@zero-based.org> writes:
Da*****@cern.c h (Dan Pop) writes:
Unless you enjoy talking alone...
^^^^^^^^^^^^^^^ ^^^^^^^^Someone has replied to every single of my postings in this subthread so
far - you. :)


I didn't realise this possibility until now, but I'll keep it in mind in
the future ;-)

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #104
Richard Bos wrote:
Richard Heathfield <do******@addre ss.co.uk.invali d> wrote:
Mark McIntyre wrote:
> But software Y, which
> coincidentally happens to be commercially produced, you don't trust,
> for precisely the same reason.
No. I trust gcc partly because of the million eyes, but mainly because I
firmly believe that GNU have the interests of the programming community
at heart.


You _have_ read the GCC man pages, haven't you?


Yes.
I refer in particular to
their comments about -pedantic.
What about those comments? As long as they provide conformance, they can be
as rude as they like about it, can't they?
I don't have the same faith in Adobe.


Neither do I, but at least if Adobe turn out to be criminals rather than
merely scummy weasels we can sue them.


I find it easier merely to have no dealings with them whatsoever.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #105
Dan Pop wrote:
In <c0**********@s parta.btinterne t.com> Richard Heathfield
<do******@addre ss.co.uk.invali d> writes:
Dan Pop wrote:
My claim is that gcc is the ideal target for such an attack. If, from
my claim you infer that you have no reason not to blindly trust gcc,
then
fine. But then, you'll look like the king of the hypocrites when
claiming that you distrust software you cannot check for malicious code
(an attacked gcc is a piece of software you cannot check for malicious
code, even if the sources are available, as long as you use gcc to
rebuild the program).


King of the hypocrites? No, not really. You see, I don't distrust GNU. But
I /do/ distrust Adobe. I am confident of GNU's good intentions. I am not
confident of Adobe's good intentions.


Non sequitur and a proof that you have understood nothing of this issue.


I think we're talking about different issues. Feel free to continue
discussing the one that concerns you, if you must.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #106
Dan Pop wrote:

<snip>
These days, text means more than whatever can be expressed with the
ASCII character set.


Who said anything about ASCII?

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #107
On Wed, 11 Feb 2004 20:31:36 +0000 (UTC), in comp.lang.c , Richard
Heathfield <do******@addre ss.co.uk.invali d> wrote:
Yes, I could - using vim, or emacs, or ed, or less, or joe, or pico, or even
grep!
all of which are file readers.
Or I could simply write a simple cat:
and so is this one.

My point is that any argument based on the need of a special program to
read the file is flawed. Unless you can personally detect the bitpatterns
on the platters of the HDD, you can't read /any/ data on a computer without
some program's assistance.
You see, text fits in with the C model very well indeed. It's easy to write
text processors in C.


Its also easy to write tex to dvi to pcl processors in standard C. Its
also easy to write pdf readers in standard C.
And chinese text is useless to me. Your point is.... :-)


...that the fewer constraints one puts on one's intended audience, the wider
that audience can be.


And pdf imposes, IMHO, virtually no realistic constraints. Sure, there's no
pdf reader for my toaster. Neither is there a text reader. I do however
have a pdf reader for dos, windows, unix, macos, vms, palmos, etc.
--
Mark McIntyre
CLC FAQ <http://www.eskimo.com/~scs/C-faq/top.html>
CLC readme: <http://www.angelfire.c om/ms3/bchambless0/welcome_to_clc. html>
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
Nov 14 '05 #108
Mark McIntyre wrote:
On Wed, 11 Feb 2004 20:31:36 +0000 (UTC), in comp.lang.c , Richard
Heathfield <do******@addre ss.co.uk.invali d> wrote:
Yes, I could - using vim, or emacs, or ed, or less, or joe, or pico, or
even grep!


all of which are file readers.
Or I could simply write a simple cat:


and so is this one.

My point is that any argument based on the need of a special program to
read the file is flawed. Unless you can personally detect the bitpatterns
on the platters of the HDD, you can't read /any/ data on a computer
without some program's assistance.
You see, text fits in with the C model very well indeed. It's easy to
write text processors in C.


Its also easy to write pdf readers in standard C.


Really? Show me. For example, please solve exercise 1-13 in K&R2, using a
PDF file instead of a text file as input. Please restrict yourself to those
parts of C introduced in those first 24 pages, to make it a fair
comparison.

--
Richard Heathfield : bi****@eton.pow ernet.co.uk
"Usenet is a strange place." - Dennis M Ritchie, 29 July 1999.
C FAQ: http://www.eskimo.com/~scs/C-faq/top.html
K&R answers, C books, etc: http://users.powernet.co.uk/eton
Nov 14 '05 #109
Richard Heathfield <do******@addre ss.co.uk.invali d> wrote:
Richard Bos wrote:
Richard Heathfield <do******@addre ss.co.uk.invali d> wrote:
Mark McIntyre wrote:

> But software Y, which
> coincidentally happens to be commercially produced, you don't trust,
> for precisely the same reason.

No. I trust gcc partly because of the million eyes, but mainly because I
firmly believe that GNU have the interests of the programming community
at heart.


You _have_ read the GCC man pages, haven't you?


Yes.
I refer in particular to their comments about -pedantic.


What about those comments? As long as they provide conformance, they can be
as rude as they like about it, can't they?


They can, but it does degrade my confidence in them having _my_
interests at heart. I don't want to be embraced-and-extended by them any
more than by M$, and they _do_ want to embrace-and-extend me.

Richard
Nov 14 '05 #110

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

Similar topics

1
2935
by: Rhino | last post by:
Can anyone point me to a good free XSLT Tutorial online? I looked for some a few months ago and didn't find anything very good. I'm hoping some of the experts here can point me to a good XSLT tutorial..... -- Rhino --- rhino1 AT sympatico DOT ca "There are two ways of constructing a software design. One way is to make it
15
4244
by: binnyva | last post by:
Hello Everyone, I have just compleated a JavaScript tutorial and publishing the draft(or the beta version, as I like to call it) for review. This is not open to public yet. The Tutorial is avaliable at... http://www.geocities.com/binnyva/code/javascript/advanced_tutorial/ If any of you could spare the time, please have a look at my tutorial
18
1969
by: Xah Lee | last post by:
i've started to read python tutorial recently. http://python.org/doc/2.3.4/tut/tut.html Here are some quick critique: quick example: If the input string is too long, they don't truncate it, but return it unchanged; this will mess up your column lay-out but that's usually better than the alternative, which would be lying about a value. (If you really want truncation you can always add a slice operation, as in
0
1788
by: Joe Mayo | last post by:
I've recently updated the C# Tutorial at C# Station with a new addition, Lesson 17: Enums. The C# Tutorial may be found at http://www.csharp-station.com/Tutorial.aspx. Other updates include: 1. Downloadable source code. 2. All example programs run on-line as NTD apps. 3. A support forum for discussing the Tutorial.
10
3096
by: Safalra | last post by:
When a poster in a forum I frequent said they were beginning to learn HTML, I thought I should direct them to a good HTML tutorial so that they wouldn't start using <blink> and the like. Remembering that this group has discussed HTML tutorials several times in the past, I searched the Google Groups archives, but all I can find are tutorials unfortunately demonstrating Flavell's Law. Searching the internet, the only accurate tutorials for...
11
2944
by: Magnus Lycka | last post by:
While the official Python Tutorial has served its purpose well, keeping it up to date is hardly anyones top priority, and there are others who passionately create really good Python tutorials on the web. I think 'A Byte of Python' by Swaroop C H is a good beginners tutorial, and 'Dive Into Python' by Mark Pilgrim is a good tutorial for more experienced programmers.
7
2261
by: Turbo | last post by:
I have a written a detailed html tutorial here:- http://sandy007smarty.seo.iitm.ac.in/2006/09/26/html-tutorial/ I know there are a couple of html tutorials out there. But its a tutorial without links!! Everything in one page. Please leave a comment if you like it.
2
2113
by: sara | last post by:
Hi All, I learned C++ long time ago and now I want to review all of its details in a short time like a week. I wonder if there is a good tutorial you know which I can read for this purpose. Thanks a lot.
0
9932
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
11109
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...
1
10833
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10405
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7114
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5782
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
5979
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4602
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
2
4198
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.