473,503 Members | 1,739 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re: C newbie problem

On Jun 28, 7:01 pm, tom <nos...@nospam.invalidwrote:
Hi -
Hi
>
I'm just starting to learn C and I'm trying to compile a first hello
world program. Unfortunately when I press the compile button it doesn't
work. Can anyone give me any advice?
Yes. Just any advice or something in particular?
>
Thanks!

~tom
Put your signature at the bottom of your post not in the middle.
Problem code follows:

(helloworld.c)
<snip code>
// 1 and 2 above on a medium customarily used for software
interchange; or,
There's your problem, intercharge is not defined anywhere. nor 'or'.
(iso646.h is not included)
<snip>
// this License, you may choose any version ever published by the Free
Software
'Software' is not defined anywhere.
<snip>
// 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY
'WARRANTY' is not defined anywhere.
<snip>
// PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER
EXPRESSED
'EXPRESSED' is not defined anywhere.
<snip>
// 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING
'WRITING' is not defined anywhere.
// REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR
DAMAGES,
'DAMAGES' is not defined anywhere.
// INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
ARISING
'ARISING' is not defined anywhere.
// YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
OTHER
'OTHER' is not defined anywhere.
// free software which everyone can redistribute and change under these
terms.
'terms' is not defined anywhere.
// <one line to give the program's name and a brief idea of what it
does.>
'does' is not defined anywhere. '.>' is a syntax error.
// You should have received a copy of the GNU General Public License
along
'along' is not defined anywhere.
// with this program; if not, write to the Free Software Foundation,
Inc.,
'Inc' is not defined anywhere. '.,' is a syntax error.
// Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type
`show w'.
` is not in the standard C character set. 'show' is not defined
anywhere. 'w' is not defined anywhere. unmatched '.
// The hypothetical commands `show w' and `show c' should show the
appropriate
'appropriate' is not defined anywhere.
// `Gnomovision' (which makes passes at compilers) written by James
Hacker.
'Hacker' is not defined anywhere.
// This General Public License does not permit incorporating your
program into
'program', 'into' are not defined anywhere.
// consider it more useful to permit linking proprietary applications
with the
'with', 'the' are not defined anywhere.
void main()
Change that to int main(void).
{
printf("Hello, world!\n");

}
return 0; is not needed here, as you use // comments, so C99.
Jun 28 '08 #1
0 1553

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

Similar topics

1
4660
by: wadacom | last post by:
I'm sorry to take your time for newbie problems but I've been searching what to do about the problem with my apache server I have. I work with ubuntu dapperdrake I put the last apache server on it...
0
883
by: emparc | last post by:
Hello Gurus, I am a newbie to SQL without any formal training (using Navigator 5) and reached a dead-end on trying to figure out the logic and the coding I need to make this work ! Your...
9
1457
by: John | last post by:
Hello all. I am a PHP newbie and am having an issue using the && in an if statement. here is the code: if ($_REQUEST == "1" && date("Y-m-d") < $rowWork) { die("<h1>The earlybird special has...
7
1502
by: idiolect | last post by:
Hi all - Sorry to plague you with another newbie question from a lurker. Hopefully, this will be simple. I have a list full of RGB pixel values read from an image. I want to test each RGB band...
0
1120
by: Alan Silver | last post by:
Hello, I'm a newbie at PHP and MySql, although I have wads of experience of ASP, ASP.NET, SQL Server, etc. I have just installed PHP 5.2.3 on a server (Windows Server 2003), as well as MySql...
2
970
by: James Calivar | last post by:
I'm a newbie trying to write a script that uses threads. I'm right now a little bit stuck in understanding why the code snippet I wrote doesn't seem to be entering the function defined in the...
5
1390
by: Dave | last post by:
I am new to Visual Web Developer 2005 Expres. I am using absolute positioning and every time I add a button control to my web form its width extends all the way to the edge of the page. IOW I...
0
1702
by: Edwin.Madari | last post by:
-----Original Message----- statement prepared first and executed many times with exectemany - db API http://www.python.org/dev/peps/pep-0249/ inline statemets can be exeucuted only. hope that...
0
1201
by: Robert Kern | last post by:
Joe Hays wrote: You will want to ask numpy questions on the numpy mailing list (preferably with a subject line a bit more informative with respect to the actual problem). ...
6
11465
Markus
by: Markus | last post by:
Things to discuss: Headers What are they? What does PHP have to do with headers? Why can they only be sent before any output? Common causes
0
7203
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
7087
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
7334
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...
0
4675
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...
0
3168
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...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
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 ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
383
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.