Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~468 People Reached
Favorite Forums
Favorite Tags
c++ x 9
Member Avatar for hectex

* This code is ran under Microsoft Visual C++ 2008 Express Edition. * So when I do run the program, it runs, it lets me input 'The Name', 'Resistance Value', and 'Tolerance Value'. *It then displays The maximum and minimum resistance. *Now here's the problem!--It displays hexadecimals. *HERE'S MY CODE …

Member Avatar for Lerner
0
332
Member Avatar for hectex

[IMG]http://i37.tinypic.com/xp0ei0.jpg[/IMG][code]#include <iostream> #include <string> #include <ostream> using namespace std; class CResistor { public: void InputInfo() { cout<<"Enter a text name for the CResistor object being created."<<endl; cin>>m_sResName; cout<<"\n"; cout<<"Enter the Following Data:"<<endl; cout<<"Resistance Value= "; cin>>Res0; cout<<"Tolerance Value= "; cin>>Res1; ResTolValue=(Res0*Res1); Res2=(Res0+ResTolValue); Res3=(Res0-ResTolValue); cout<<":Max Resistance= "<<Res2<<endl; cout<<":Min Resistance= "<<Res3<<endl; cout<<"\n"; …

Member Avatar for mrnutty
-1
136