|
I'm trying to divide a string into parts for reading Roman numerals. For example if the user enters
"XI"
I want the program to be able to understand that I is 1 and X is 10 in order for a data validation like this to work.
if(string roman == "X") int ...
Started by trikker on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
This example looks at the first character in the string roman (characters as pseudocode:
int from_roman_numeral....
To access an individual character from a string, use square brackets:
int num = 0; char r = roman[0 to get you started.
|
|
Much like the decade such as the Noughties that is not given a name until it has passed into the realm of nostalgia we don't give ourselves a collect identity for historical purposes until the time is passed, what would future historians (i) choose to...
Started by Bill Clinton on
, 21 posts
by 17 people.
Answer Snippets (Read the full thread at digitalspy):
We are Thatcher's children Can I suggest you pick up a copy of the very entertaining "Empire Of The Skies" by James Hamilton-Paterson?
In it he argues that age of the New Elizabethan Age....born with great promise in an era when the triumphs of British... .
|
|
A thread for posting pictures of yourself/other playgrounders, and video/voice recordings.
Stay on topic; if the conversation strays from either posting media or discussing such media, take it to Random Banter.
Last index: http://www.giantitp.com/forums...
Started by Gwyn chan 'r Gwyll on
, 14 posts
by 11 people.
Answer Snippets (Read the full thread at giantitp):
Damn you! I preferred the "Rawhide spoiled our fun" title :P Pants? Where we're going ... .
Damn you, you thread-stealing thread-stealer, you.My rewenge will be torturous and.. .
Good job by Gwyn to take care of it.
Sorry I wasn't around to open the thread.
|
Ask your Facebook Friends
|
I am building a page, and when it is viewed in IE (all versions) the entire text is stuck on times new roman. Here is my CSS:
body{ color:# ; margin:0 auto; background-color:#000; font-family: "Tw Cen MT","Gill Sans","Century Gothic"; }
In Safari and ...
Started by JCHASE11 on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The best way is to put headings and small paragraphs into graphics, preferably as GIF .
New Roman.
|
|
Helvetica Neue 55 Roman vs. Helvetica Neue LT 55 Roman
Hi,
can anyone tell me if Helvetica Neue 55 Roman and Helvetica Neue LT 55 Roman are the same font just with a different name or are they actually different. And if so, what's the difference?
Started by octabrain on
, 7 posts
by 5 people.
Answer Snippets (Read the full thread at graphicdesignforum):
Im going by these two web pages
http://www.abstractfonts.com/search/...ue+lt+55+roman
http Roman and Helvetica Neue LT 55 Roman are the same font.
|
|
Possible Duplicate:
How do you match only valid roman numerals with a regular expression?
Hi,
Is there any regular expression to identify roman numbers? I want to identify numbers like I, II, III, XI, XIII ,etc.
I am using C#.
EDIT :
After some googling...
Started by shekhar on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
So in short, no, there isn't one/questions/267399/how-do-you-match-only-valid-roman-numerals-with-a-regular-expression
Check out the Dive into Python tutorial where Roman....
I believe Roman numerals require a context-free grammar to parse.
|
|
Thinking about my other problem , i decided I can't even create a regular expression that will match roman numerals (let alone a context-free grammar that will generate them)
The problem is matching only valid roman numerals. Eg, 990 is NOT "XM", it's...
Started by Daniel Magliola on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
For example, using Perl notation:
<opt-hundreds-part> = m/(CM.
Try:
^M{0,4}(CM with the vagaries of Roman notation.
Dive Into Python explains how you can do this in 7.3 Case Study: Roman Numerals .
|
|
For Roman Catholics...Why are you a Roman Catholic? Can you please tell me in a concise manner why you are a Roman Catholic Can you please tell me in a concise manner why you believe the Roman Catholic Church is the true church?
thanks Last edited by ...
Started by Matt Slick on
, 10 posts
by 10 people.
Answer Snippets (Read the full thread at carm):
Are a Roman Catholic Can you please tell me in a concise manner why you believe the Roman Catholic Christmas Can you please tell me in a concise manner why you are a Roman Catholic
Sometimes I feel manner why you believe the Roman....
|
|
Hi,
is there a way to have roman numbers for the pages at the end of the article - like \bibliography{...}, \listoffigures and acronym-lists?
Currently they show up without any numbers :(
Cheers,..
Argh sorry - I was kind of incorrect I'm not looking ...
Started by pagid on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You would want to specify, but assuming you want to start over from i , you might try
\pagestyle{plain} \pagenumbering{roman.
Pagenumbering{roman} is how to have Roman numbers on pages in general.
|
|
Write a program that take a single command line argument N and prints out the corresponding Roman Numeral .
Eg N = 2009 should print MMIX.
Let's say this should work for 0 < N < 3000.
(Had fun playing my first ever round of code golf with the Christmas...
Answer Snippets (Read the full thread at stackoverflow):
From a vaguely C-like language called LPC (precursor of Pike):
string roman_numeral(int val) { check($_/($c=pop @l));$_%=$....
Answer.ToString(); } }
The underscores should be overlines above the respective letter to be true Roman Numeral.
|