^
thanks for the motivation:cool:
but i still cant get the output to print the input in front of the suffix:mad:
also, i think that i am using the wrong parameters and wrong variable...
Type: Posts; User: INeedSleep
^
thanks for the motivation:cool:
but i still cant get the output to print the input in front of the suffix:mad:
also, i think that i am using the wrong parameters and wrong variable...
well am i on the right track but taking a different train?
i got the special cases for 11-13 to work; but it prints out the suffix first then the users input. how should i go about to fix this?
anyway here is the code:
* the function...
i dont know where to start with this code i have
#include <iostream>
#include <string>
using namespace std;
int main()
{
it worked out well. my professor helped me out
//updated 11/7/07
// Jason helped: Wed Nov 7 15:49:56 CST 2007
#include <cctype>
#include <string>
#include <iostream>
#include <climits>
i finally got the basic code to work
#include <iostream>
#include <string>
using namespace std;
int main()
{
*finding the suffix*
i'm in the real early stages
i have the formulas for the special cases and for the regular cases
#include <iostream>
#include <string>
using namespace std;
i'll put it in and show it to him later today and see what he says
anyway, i started this program a few hours ago:
http://home.earthlink.net/%7Ecraie/121/labs/suffix.html
i will post my code...
^
teacher never covered for loops, only while
i was thinking about doing it, but i dont want to risk getting anything marked off
//updated 11/7/07
// Jason helped: Wed Nov 7 15:49:56 CST 2007
#include <cctype>
#include <string>
#include <iostream>
#include <climits>
using namespace std;
// single digit n, three char...
alright everything is good(except infinite loops)
how does this look? is it more clear than the previous code?
//updated 11/6/07
#include <cctype>
#include <string>
#include <iostream>
thanks Molo
i should have the final code for the basic of turning positive integers into roman numerals
but i want to do this:
Add (Level 3) to use functions to break your program into more...
4)how should i properly reprompt?
btw, i have another problem
numbers such as 1999 and 2999 wont print out accordinly.
how should i go to correct this?
oh yea here is the updated code:
...
all in all there is no avoidance of using vectors of arrays in this program?
btw, the only problems i'm having now are
1)*cant get "L"(50) or "D"(500) to print
2)*cant print out anything that...
i was going to put in a loop after i get the entire code down right
Heres an update!
I got the basic formulas to get the remainders from the thousands place, tens place etc.
the program prints out a "I", "II" and a "III" with no problem.
But i need help on what...
1000 + 100*9 + (80+4)
M +LLLLLLLLL +LXXXIV= MLLLLLLLLLLXXXIV? 1984
or?
|
|
\/
M+IXC...
i have an assignment which basically takes whatever the users inputs, and outputs and translates it to Roman numerals. numbers----->Roman numerals
here is the link that explains everything in more...