Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #72.7K
[code] #include <iostream.h> int main(void){ int base; char num; cout<< "Enter a base: "; cin >> base; while((base>=2)&&(base<=10)){ } cin>>num; while((num-'0') < (base)) && (c>='0'){ base>=base*2+(num-'0') cin.get>>num; } cout<<base; cin.putback>>num; return 0; } [/code] Clearly, this program doesn't work very well. I am in need of help. The teacher really … |