There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
black screen blue screen blue screen of death boot computer connection crash css dell display driver drivers error excel firefox firefox 3 game hard drive internet internet explorer itunes laptop lcd linux malware monitor network networking nvidia outlook outlook 2003 outlook express partition password printer problem ram router slow software sound sprtcmd.exe trojan usb video virus vista windows windows xp wireless
Software Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Software & Hardware > Software Development >
Can anyone fix this


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
Rhino24's Avatar
Member with 41 posts.
 
Join Date: Feb 2008
Experience: Beginner
15-Mar-2008, 12:18 AM #1
Can anyone fix this
I am trying to covert decimal to Roman numeral but I can't get it to compile. I am getting tired of this can somebody please help me out!!



#include <iostream>
using namespace std;


class decimalType{
public:
void decimaltype();
int convert();
void print();
void get();

private:
int 1, 2, 3, 4, 5, ;
char decimalNumeral;
};

void decimalType::decimal(){
1 = I;
2 = II;
3 = III;
4 = IV;
5 = V;

}


int decimalType::convert(){
if (decimalNumeral = 1){
cout << I;
}else if(decimalNumeral = 2){
cout << II;
}else if(decimalNumeral = 3){
cout << III;
}else if(decimalNumeral = 4){
cout << IV;
}else if(decimalNumeral = 5){
cout << V;

}

return decimalNumeral;
}


void decimalType:rint(){
cout << decimalNumeral << endl;
}

void decimalType::get(){


}

int main(){
char decimalNumeral;
cout << "Welcome to the Roman numeral to decimal converter!\nPlease enter a number in Roman numerals to be converted: ";
cin >> decimalNumeral;

//print();
return 0;
}
demortes's Avatar
Computer Specs
Member with 98 posts.
 
Join Date: Mar 2007
Location: Sioux City, Iowa, USA, Earth
Experience: Advanced
15-Mar-2008, 01:23 PM #2
You double posted.... see your other post.
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 07:05 AM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.