[Dev-C++] How do i correct a syntax error
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: EFE B. <dou...@ya...> - 2002-03-30 03:10:17
|
/* file:omosefe.cpp
description:program to input 5 floating point numbers
programmer:Omosefe Bazuaye
Date:27th March 2002
*/
#include <iostream>
#include <iomanip>
using std::cout;
using std::cin;
using std::endl;
float number;
{
float number 1, number 2, number 3, number 4, number
5;
cout << " Enter 5 floating point numbers " << endl;
cin >> number 1 ;
cin >> number 2 ;
cin >> number 3 ;
cin >> number 4 ;
cin >> number 5 ;
cout << " The floating point numbers are " << endl;
cout << " number 1 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 2 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 3 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 4 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
cout << " number 5 is " << setprecision(2)
<< setiosflags(ios::fixed | ios::showpoint)
return 0;
}
The results of the complilation says i have syntax
errors and so i can't get any results.Please Help.
Thanks.
__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/
|