4. String formatting using header file
OMG :icon_eek: You mean to tell us that you school is teaching you the wrong stuff!
iomanip.h has been deprecated (obsolete) for almove 10 years now. The current file name is (no .h extension). I wonder what else they have been trying to teach you that is either just wrong or long obsolete???
Don't sit there expecting anyone to do your homework for you because that will teach you nothing. Code each of those 6 requirements one at a time and you will have the assignment done before you know it.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
I wonder what else they have been trying to teach you that is either just wrong or long obsolete???
My money is on at least 4 of the following 6 horrible things:
- void main()
- turbo C
- system()
- scanf()
-
- getch()
And because my crystal ball is working so well today, I'll also say that the OP is either from India or the Philippines :)
Nick Evan
Not a Llama
10,112 posts since Oct 2006
Reputation Points: 4,142
Solved Threads: 403
From OP pdf file :
//Use the following code to check for file error
if (input.fail()){
cerr<<"File not found!"<<endl;
system("PAUSE");
return 0
firstPerson
Senior Poster
3,923 posts since Dec 2008
Reputation Points: 841
Solved Threads: 608
> i have till wednesday(26/08) to finish it.
Shouldn't that have read "YOU have until Tuesday 25/08 to finish it" ;)
Salem
Posting Sage
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953