XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).
Moderator: General Moderators
Charles256
DevNet Resident
Posts: 1375 Joined: Fri Sep 16, 2005 9:06 pm
Post
by Charles256 » Tue Sep 20, 2005 8:41 pm
what could possibly be wrong with ...
yes i did include iomanip....
this is the error I gget...
:\Documents and Settings\Owner\Desktop\Program3\Program3\Program3.cpp(29) : error C2065: 'fixed' : undeclared identifier
Last edited by
Charles256 on Tue Sep 20, 2005 9:01 pm, edited 1 time in total.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Sep 20, 2005 8:49 pm
Charles256
DevNet Resident
Posts: 1375 Joined: Fri Sep 16, 2005 9:06 pm
Post
by Charles256 » Tue Sep 20, 2005 8:51 pm
is my c++ book that old?
Charles256
DevNet Resident
Posts: 1375 Joined: Fri Sep 16, 2005 9:06 pm
Post
by Charles256 » Tue Sep 20, 2005 8:52 pm
actually that didn't fix it..hmm..
Charles256
DevNet Resident
Posts: 1375 Joined: Fri Sep 16, 2005 9:06 pm
Post
by Charles256 » Tue Sep 20, 2005 9:00 pm
i fixed it.had to change my includes, remove the .h's and declare using namespace std; and that fixed it.
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Tue Sep 20, 2005 9:06 pm
yeah.. this works for me....
Code: Select all
#include <iostream>
#include <iomanip>
using namespace std;
void main() {
cout << setprecision(2) << fixed;
}