| delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:8097 |
| From: | Matthews <robmatthews AT netroute DOT net> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | HELP MEEEEEE!!!! |
| Date: | 30 Aug 1996 04:02:18 GMT |
| Organization: | Sentex Communications Corporation. |
| Lines: | 23 |
| Message-ID: | <01bb9627.474de9c0$146332cc@robmatthews> |
| NNTP-Posting-Host: | p3.nebula.netroute.net |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
OK...here's my problem. I've really just started at this stuff (actually
jsut got C++ today)...so here's my question. I did a program...a VERY
SIMPLE program...straight from a book (yes I'm learning...I have to)...but
it doesn't want to work. Here is what the program says:
#include <stdio.h>
void main()
{
puts( "-------MY PROGRAM WORKS!------");
}
And that's it...you think that it would work right...NOT REALLY! It keeps
giving me an error saying:
Error: Function 'puts' should have a prototype in function main()
And that's all...I can't figure out where I should be getting this
"prototype" from...PLEASE HELP SAVE THE MIND OF A VERGING PSYCOPATH!
RM
AKA
TU
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |