473,396 Members | 1,938 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

c basics

4 1412
lawryy said:
http://computer-language-tutorials.b.../c-basics.html
The first significant technical error occurs in the first program
presented:

+++ quote begins +++

As an extreme example the following C code (mystery.c) is actually legal C
code.
#include

+++ quote ends +++

Whilst it is certainly true that #include is part of the C language (it's a
preprocessor directive), it can't appear on its own like that. Proof:

3.8.2 Source file inclusion

Constraints

A #include directive shall identify a header or source file that
can be processed by the implementation.
Thus, the absence of identification of a header or source file is a
constraint violation which requires the implementation to issue a
diagnostic message. Translation may or may not continue, at the
implementation's discretion; if it continues, the behaviour of the
resulting program is undefined.

When that one's fixed, no doubt you can persuade someone to look for the
second significant technical error. Iterate that process sufficiently
often, and you might end up with a C tutorial that's worth looking at.
But, as it stands, no.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Jan 23 '08 #2
Richard Heathfield <rj*@see.sig.invalidwrites:
lawryy said:
>http://computer-language-tutorials.b.../c-basics.html

The first significant technical error occurs in the first program
presented:

+++ quote begins +++

As an extreme example the following C code (mystery.c) is actually legal C
code.
#include

+++ quote ends +++

Whilst it is certainly true that #include is part of the C language (it's a
preprocessor directive), it can't appear on its own like that.
[...]

That appears to have been at least partly an HTML error. Looking at the
HTML source of the page, it actually says

<pre>#include <stdio.h><br /><br /><br /></stdio.h></pre>

Probably whatever HTML editor was used thought <stdio.hwas a
directive, and tried to close it; apparently it also lost the rest of
the program. Of course that's not excuse for not bothering to see
what the page actually looks like. A lot of the other examples appear
to have the same problem.

<OT>
For anyone posting C source code in an HTML page, remember that <pre>
doesn't inhibit the interpretation of the '<' character.
</OT>

[...]
When that one's fixed, no doubt you can persuade someone to look for the
second significant technical error. Iterate that process sufficiently
often, and you might end up with a C tutorial that's worth looking at.
But, as it stands, no.
--
Keith Thompson (The_Other_Keith) <ks***@mib.org>
Nokia
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jan 23 '08 #3
Richard Heathfield wrote:
lawryy said:
>http://computer-language-tutorials.b.../c-basics.html

The first significant technical error occurs in the first program
presented:

+++ quote begins +++

As an extreme example the following C code (mystery.c) is actually legal C
code.
#include

+++ quote ends +++
I didn't bother to look at it, but probably they used literal angle
brackets in HTML, where &lt; and &gt; should be used.

--
Army1987 (Replace "NOSPAM" with "email")
Jan 23 '08 #4
Army1987 said:
Richard Heathfield wrote:
>lawryy said:
>>http://computer-language-tutorials.b.../c-basics.html

The first significant technical error occurs in the first program
presented:

+++ quote begins +++

As an extreme example the following C code (mystery.c) is actually legal
C code.
#include

+++ quote ends +++
I didn't bother to look at it, but probably they used literal angle
brackets in HTML, where &lt; and &gt; should be used.
Well, they can take that up with comp.markup.html if such a beast exists.
The point is not how it's broken - the point is that it *is* broken.

If he fixes this one and tells us, I'll gladly look for another couple of
errors, to help him in his bid for perfection. And if he fixes *those* and
tells us, I may even look for another three.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
Jan 24 '08 #5

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

Similar topics

1
by: enki | last post by:
I have been learning perl and C++, and I have been looking into Java. I know very little about the language, I have found some realy bad books that realy served to confues me and I have to find...
0
by: James Messick | last post by:
I'm just getting started with MySQL. Got my first db created and can run SQL against it in the phpAdmin program. Is there a tutorial online somewhere that shows me the basics of accessing it from a...
2
by: Kurien Baker Fenn | last post by:
I would like to show the progress of an application using the progress bar in visual basics using the timer.Please help me. Thanks in advance.
1
by: manish | last post by:
Hi, I am a fresher in the programming field i.e although I have done programming at the basic level but at professional level I am very new and I am facing many problems. These probllems are...
1
by: ThunderMusic | last post by:
Hi, I need to send some data from my app to a remote server. So, after some searches, I found the best way would be to use web services (unless you can suggest me other ways). The data sent will...
14
by: chitu | last post by:
Hi pals, Hope u all of r intersted in C programming.Let start from d basics.
5
by: Jyoti Khalap | last post by:
HI Can Anyone help me out with my problem its very urgent I want to import text file to my visual basics application because everytime its a new text file depending on that text file i want to...
3
Mague
by: Mague | last post by:
Hey, I need help to some how open a exe file with Microsoft Visual basics. You mite think im trying to steal someone elses project but im not i wont to no how they did it and upgrade it if...
0
by: babu8880 | last post by:
www.convensysglobal.com/elearn You can login and attend courses and similar resources ask your doubts from experienced engineers in iphone and Objective C Domain You can attend live classes...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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,...
0
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...

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.