Tagged Questions
3
votes
2answers
124 views
PHP function to compare two Roman numerals
This was for an assignment. I had to write a function to compare two roman numerals. This had to return true only if the second number was larger than the first and had to be done without converting ...
3
votes
2answers
185 views
Homework Review - Storing three integer values
Consider an 8-bit complier, in which we have an integer of size, say 2-words i.e. 16-bits or 2 bytes. You need to store three integer values which are supposed to be as:
Name Range Size ...
13
votes
9answers
2k views
Most efficient way in C++ to strip strings
If I want to strip a string completely of its whitespaces, punctuation and numbers (i.e. anything that is not A-Z, a-z), what is the most efficient way of doing it in C++?
I tried this:
string ...