473,890 Members | 2,061 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 7758

"jacob navia" <ja***@jacob.re mcomp.fr> wrote in message
news:bv******** **@news-reader3.wanadoo .fr...

The spell checker is inexistent almost.


That certainly appears to be the case.
:-)

-Mike

Nov 14 '05 #41
"CBFalconer " <cb********@yah oo.com> wrote in message
news:40******** *******@yahoo.c om...
jacob navia wrote:

It is in html format and only 600K. You can read it with your
browser. Many small things have disappeared, like the
indentation of program text, but it is still quite readable


Excellent. Program text indentation should be easily preserved
with <pre> </pre> enclosures. You might also look into the info
system, which can prepare html, pdf, info, text and ps output from
common source. All open source.


"info system"? Does that have a more 'formal' name? Do you
have URL? Thanks.

-Mike
Nov 14 '05 #42
In article <c0**********@n ews-reader1.wanadoo .fr>,
"jacob navia" <ja***@jacob.re mcomp.fr> wrote:
"Richard Heathfield" <do******@addre ss.co.uk.invali d> wrote in message
news:bv******** **@titan.btinte rnet.com...
jacob navia wrote:
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.


Thanks. I'd love to have a look at it. Do you have a version

available in a
portable document format? The site says that "you need the Acrobat

Reader
to view it". You see, given a choice between using Acrobat Reader or

not
reading your tutorial, I will cheerfully give up the chance to read

your
tutorial.


Look, I have taken the time to prepare:
ftp://ftp.cs.virginia.edu/pub/lcc-win32/tutorial.zip

It is in html format and only 600K. You can read it with your
browser. Many small things have disappeared, like the
indentation of program text, but it is still quite readable

I am in no way associated with Adobe corp. Neither do I want to do any
publicity for them.

But PDF is a widely used format, and there are many tools under linux
that
understand it perfectly. I could have put the post script file, but it
is 40MB,
zipping it reduces it to 12MB, quite considerable still. So I produced
zipped html.


To be honest, anyone using a Macintosh will be extremely keen on PDF
files, and they will _not_ use Acrobat Reader to view it. For example, I
can open the C Standard in PDF format, type any word in a search box,
and get a complete list of all occurences of that word, with context and
page number, about at the time that I finished typing. That is on a two
year old machine that wasn't too fast back then.

("Inadequate tools" springs to my mind).
Nov 14 '05 #43
In article <cc************ *******@newsrea d1.news.pas.ear thlink.net>,
"Mike Wahler" <mk******@mkwah ler.net> wrote:
"jacob navia" <ja***@jacob.re mcomp.fr> wrote in message
news:bv******** **@news-reader3.wanadoo .fr...

The spell checker is inexistent almost.


That certainly appears to be the case.


When writing tutorials, a spelling checker is usually much more useful
than a spell checker anyway. Harry Potter might need a spell checker, I
certainly don't.
Nov 14 '05 #44
Mike Wahler wrote:
"CBFalconer " <cb********@yah oo.com> wrote in message
jacob navia wrote:

It is in html format and only 600K. You can read it with your
browser. Many small things have disappeared, like the
indentation of program text, but it is still quite readable
Excellent. Program text indentation should be easily preserved
with <pre> </pre> enclosures. You might also look into the info
system, which can prepare html, pdf, info, text and ps output from
common source. All open source.


"info system"? Does that have a more 'formal' name? Do you
have URL? Thanks.


If you are using windoze any of DJGPP, MINGW, CYGWIN will provide
a suitable environment for the system. Once you get over a
learning curve (which I haven't) you can get on-line output for
the info viewer, man output, pdf, ps, html, xml, even tex.
However, it is not a wysiwyg system.

Some excerpts from documentation on my system:
Texinfo
*******

This manual is for GNU Texinfo (version 4.2, 28 March 2002), a
documentation system that can produce both online information and a
printed manual from a single source.

Copyright (C) 1988, 90, 91, 92, 93, 95, 96, 97, 98, 99, 2000, 01, 02
Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this
document under the terms of the GNU Free Documentation License,
Version 1.1 or any later version published by the Free Software
Foundation; with no Invariant Sections, with the Front-Cover texts
being "A GNU Manual," and with the Back-Cover Texts as in (a)
below. A copy of the license is included in the section entitled
"GNU Free Documentation License."

(a) The FSF's Back-Cover Text is: "You have freedom to copy and
modify this GNU Manual, like GNU software. Copies published by
the Free Software Foundation raise funds for GNU development."

The first part of this master menu lists the major nodes in this Info
document, including the @-command and concept indices. The rest of the
menu lists all the lower level nodes in the document.


--
Chuck F (cb********@yah oo.com) (cb********@wor ldnet.att.net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home .att.net> USE worldnet address!
Nov 14 '05 #45
In <c0**********@s parta.btinterne t.com> Richard Heathfield <do******@addre ss.co.uk.invali d> writes:
Dan Pop wrote:
OTOH, Acrobat Reader lets you copy/paste, generates excellent output
and is trivially easy to use.


Is the source code freely available, so that I can assure myself that the
program contains no malicious code?


On how much of the software you're currently using have you already
performed this check?

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #46
In <c0*********@he rcules.btintern et.com> Richard Heathfield <do******@addre ss.co.uk.invali d> writes:
Mark McIntyre wrote:
BTW I bet you a groat you don't scan most programs for malicious code,
so your argument is spurious.


I disagree that the argument is spurious. It's true that I don't scan most
programs for malicious code; I don't have to, because - since they're Open
Source - lots of people have done this already,


How do you know it? If everyone reasons like you, no one is actually
doing it :-)

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #47
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.
And explain why that format should be used instead of PDF.

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 14 '05 #48
Da*****@cern.ch (Dan Pop) writes:
In <c0*********@he rcules.btintern et.com> Richard Heathfield <do******@addre ss.co.uk.invali d> writes:
Mark McIntyre wrote:
BTW I bet you a groat you don't scan most programs for malicious code,
so your argument is spurious.


I disagree that the argument is spurious. It's true that I don't scan most
programs for malicious code; I don't have to, because - since they're Open
Source - lots of people have done this already,


How do you know it? If everyone reasons like you, no one is actually
doing it :-)


For the record, I often read the source code of Free Software, which
disproves that /no one/ is doing it. :)

Martin
Nov 14 '05 #49
On Tue, 10 Feb 2004, Martin Dickopp wrote:
Da*****@cern.ch (Dan Pop) writes:
In <c0*********@he rcules.btintern et.com> Richard Heathfield <do******@addre ss.co.uk.invali d> writes:
I disagree that the argument is spurious. It's true that I don't scan most
programs for malicious code; I don't have to, because - since they're Open
Source - lots of people have done this already,


How do you know it? If everyone reasons like you, no one is actually
doing it :-)


For the record, I often read the source code of Free Software, which
disproves that /no one/ is doing it. :)


Cool,

Now you only need to show that your reasoning is after all similar
to Heathfields and that merely reading software for other reasons than
scanning for malicious code constitutes as "it" and you'll have Dan
nailed for false statement ;)

Nov 14 '05 #50

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

Similar topics

1
2936
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
4246
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
1970
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
1789
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
3098
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
2945
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
2262
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
2114
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
10794
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
10896
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
10443
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...
1
8000
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
7153
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
5830
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
6031
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4652
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
4251
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.