Article View: borland.public.cppbuilder.database.ado
Article #5066need help with RUN
From: sfini
Date: Sat, 11 Aug 2001 01:16
Date: Sat, 11 Aug 2001 01:16
25 lines
1370 bytes
1370 bytes
i just creat a simple program to convert Fahrenheit to celsius, but after i
click run nothing happened, please help, thanks alot
#include <iostream.h>
float Convert(float);
int main()
{
float TempFer;
float TempCel;
cout << "Please enter the temperature in Fahrenheit: ";
cin >> TempFer;
TempCel = Convert(TempFer);
cout << "\nHere's the temperature in Celsius: ";
cout << TempCel << endl;
return 0;
}
float Convert(float TempFer)
{
float TempCel;
TempCel = ((TempFer - 32) * 5) / 9;
return TempCel;
}
Technical Details
Message-ID:
<3b748796$1_1@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,ec6672a8328bf2,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2001-08-10 18:35:20 PST Reply-To: "sfini" <finiter@hotmail.com> From: "sfini" <finiter@hotmail.com> Newsgroups: borland.public.cppbuilder.database.ado Subject: need help with RUN Date: Fri, 10 Aug 2001 21:16:08 -0400 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2479.0006 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006 NNTP-Posting-Host: 209.246.72.17 Message-ID: <3b748796$1_1@dnews> X-Trace: dnews 997492630 209.246.72.17 (10 Aug 2001 18:17:10 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!howland.erols.net!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews