i have long form packed down farely well. i just need the last 2 "nothing" and "imverytired" to be short form roman numerals. ie (long form: 524=DXXIIII) (short form:524=DXXIV)
heres my code.. i really need help.
// roman_numeral.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <string>
#include <algorithm>
#include<math.h>
#include <ctype.h>
#include <cctype>
#include <functional>
using namespace std;
int main()
{
int x=0,i=0,n=0,w=0,e=0,q=0, start=0;
string nothing = "";
string imverytired = "";
string nothealthytired = "mdclxvi";
string roman = "MDCLXVI";
string p = "What would you like to start with? <1-5000>";
string o = "that number is not in the range of 1-5000.";
cout << "what would you like to start with? <1-5000>" ;
cin >> start;
while(start<1||start>5000)
{
cout<<"that number is not in the range of 1-5000.";
cout<< "what would you like to start with? <1-5000>";
cin >> start;
}
//..............................UPPER CASE................................
for(i=start;i<=start+20;i++)
{
x=i;
n=x/1000;
nothing.append(n,roman[0]);
x=x%1000;