473,549 Members | 2,628 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 #1
156 7476
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.

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 :-)
This will attract some flak from this crowd. ANSI C and operator
overloading do not go together; this has little to do with zealotry or
heresy... It's more like saying: I'm writing something about soccer,
which includes a section on how to properly use a tennis racket.

If you're going to do a tutorial on C++, why not simply call it a C++
tutorial?
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.


Unfortunately, the ftp server seems to be overloaded.

Best regards, Sidney

Nov 14 '05 #2

"Sidney Cadot" <si****@jigsaw. nl> wrote in message
news:bv******** **@news.tudelft .nl...
jacob navia wrote:
This will attract some flak from this crowd. ANSI C and operator
overloading do not go together; this has little to do with zealotry or heresy... It's more like saying: I'm writing something about soccer,
which includes a section on how to properly use a tennis racket.

The implementation is 100% compatible with the standard. As
you may know, the standard doesn't forbid extensions.
If you're going to do a tutorial on C++, why not simply call it a C++ tutorial?
Because is C. No object oriented programming, no namespaces
no facets, no complexity. Just a few ideas from C++.
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.
Unfortunately, the ftp server seems to be overloaded.


Yes, there are many people using it, I hope it is useful.
Just try again later.

Best regards, Sidney


Thanks
jacob
Nov 14 '05 #3

On Thu, 5 Feb 2004, Sidney Cadot wrote:

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. <snip...> 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 :-)


This will attract some flak from this crowd. ANSI C and operator
overloading do not go together; this has little to do with zealotry or
heresy... It's more like saying: I'm writing something about soccer,
which includes a section on how to properly use a tennis racket.


But as I understand it, Jacob *does* play soccer with a tennis
racket... :)

Re the actual content, I gave it a very cursory inspection. The
text still has a higher-than-average number of typos (capitalize
"Linux," for example, and the diagram on page 4, besides being
slightly mis-laid-out with respect to the surrounding text, has
a typo in the compiler message itself ("sucessfully"? )).
The technical content of the text is so lcc-win32 specific as to
make any review by comp.lang.c essentially pointless. From an ISO
Standard point of view, you've got errors up the wazoo -- but as
far as I can tell, at least the first few dozen pages are correct
from an lcc-win32 point of view.
I will also say that the typography needs some work. It's legible,
but you haven't paid much attention to the consistent use of Courier
for code snippets embedded in the text, the difference between ` and '
and whatever TeX does with ", `` and '', and lots of other little
typographical nits. Makes it somewhat more annoying to read than it
really has to be, IMHO.

my $.02,
-Arthur
Nov 14 '05 #4

On Wed, 4 Feb 2004, Bubba wrote:

On Thu, 05 Feb 2004 02:51:18 +0100, jacob navia wrote:
"Sidney Cadot" <si****@jigsaw. nl> wrote...
If you're going to do a tutorial on C++, why not simply call it
a C++ tutorial?
Because is C. No object oriented programming, no namespaces
no facets, no complexity. Just a few ideas from C++.


Then it isn't C. The code may be C++, which happens to have a lot in
common with C (though it is not truly a superset)
Operator overloading is without a doubt NOT ISO/ANSI C.

So you're telling me that just because a program does not use class,
namespace, or templates means its not C++. I think you have flawed
reasoning.

<snip> Sorry, but your tutorial uses C++. It may use a restricted subset of C++,
but it is still C++, not C.

Got it?


You are mistaken. Jacob Navia's compiler is most definitely *NOT*
a C++ compiler, and doesn't try to be (AFAIK). It *is* a C compiler
with a whole bunch of non-standard extensions, including operator
overloading and suchlike. But it's *NOT* C++!

To use Sidney's analogy, just because Jacob likes to play soccer
using a tennis racket doesn't mean he's playing tennis. He may not
be playing tournament-rules soccer, but he's sure as heck not
playing tennis, if he's still kicking around that big black-and-white
ball!

[Jacob's an off-and-on regular in c.l.c, which is how I know what
his compiler is like, second-hand. I've never tried it myself: I
prefer to play soccer with my feet, and tennis with my tennis racket.
;-) ]

-Arthur
Nov 14 '05 #5
Arthur J. O'Dwyer wrote:
Something that calls itself Bubba wrote:
[snip]
You are mistaken.


[snip]

Arthur,

Please don't feed the trolls.

Nov 14 '05 #6
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.

--
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 #7
Richard Heathfield wrote:
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.


What's wrong with Ghostview? Does his stuff _really_ need the Acrobat reader?
--
Martin Ambuhl
Nov 14 '05 #8
Martin Ambuhl wrote:
Richard Heathfield wrote:
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.


What's wrong with Ghostview?


Nothing at all, of course, although I don't particularly enjoy using it. I
use it for reading the Standard, because it's in my direct interest to be
able to read the Standard as a PDF. But when I have no particular reason to
read a document other than to review it in case I can help its author to
improve it, well, call me Mr Silly but I don't think it's the author's
place to insist that I use the software /he/ chooses.

Does his stuff _really_ need the Acrobat reader?


He says it does, and he should know, shouldn't he?
--
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 #9
Martin Ambuhl <ma*****@earthl ink.net> scribbled the following:
Richard Heathfield wrote:
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.

What's wrong with Ghostview? Does his stuff _really_ need the Acrobat reader?


I wouldn't be surprised if some web site authors write documents that
really _do_ require a particular (usually commercial) product to read.
Even if they don't use any proprietary features of that particular
product.

--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"As a boy, I often dreamed of being a baseball, but now we must go forward, not
backward, upward, not forward, and always whirling, whirling towards freedom!"
- Kang
Nov 14 '05 #10

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

Similar topics

1
2909
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
4193
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...
18
1931
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....
0
1765
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
3062
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...
11
2910
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...
7
2238
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
2095
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
7541
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...
1
7497
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...
0
7826
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...
0
6065
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5385
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...
0
5107
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...
0
3512
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...
1
1960
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
1
1074
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.