delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/08/31/15:36:36

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Message-ID: <20040831190950.16489.qmail@web20224.mail.yahoo.com>
Date: Tue, 31 Aug 2004 12:09:50 -0700 (PDT)
From: pradyut bhattacharya <pradyut100 AT yahoo DOT com>
Subject: compiler problem
To: djgpp AT delorie DOT com, prgc AT yahoogroups DOT com
MIME-Version: 1.0

i get a error a message on compiling a simple program
in DJGPP in MS-DOS

my file 

-----------------------------------------------

#include <iostream.h>
void main()
{
char a;
cout <<"Enter a alphabet: ";
cin >>a;
if (a=='a')
cout <<"this is a vowel";
else if (a=='e')
cout <<"this is a vowel";
else if (a=='i')
cout <<"this is a vowel";
else if (a=='o')
cout <<"this is a vowel";
else if (a=='u')
cout <<"this is a vowel";
else
cout <<"this is not a vowel";
}

-------------------------------------------------


the error message: -

----------------------------------------------

In file included from
c:/djgpp/bin/../lib/gcc/djgpp/3.41/../../../../include/cxx/3.41/backward/iostream.h:31,
                 from vowel.cpp:1:
c:/djgpp/bin/../lib/gcc/djgpp/3.41/../../../../include/cxx/3.41/backward/backward_warning.h:32:2:
warning: #warning This file includes at least one
deprecated or antiquated header. Please consider using
one of the 32 headers found in section 17.4.1.2 of the
C++ standard. Examples include substituting the <X>
header for the <X.h> header for C++ includes, or
<iostream> instead of the deprecated header
<iostream.h>. To disable this warning use
-Wno-deprecated.
vowel.cpp:3: error: `main' must return `int'
vowel.cpp:19:2: warning: no newline at end of file
--------------------------------------------

what is this i cannot come through
any sample hello world program may do a help

thanks

Pradyut
http://pradyut.tk

India


=====



		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019