![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2007
Posts: 1
Rep Power: 0
![]() |
Pascal Program Help.
I want to make a program in Pascal. Something like a Calendar.
I wanna Put some Roman numbers in it as Input. I = 1 V = 5 X = 10 L = 50 V = 100 D = 500 M = 1000 And i want to put some of these Characters and Add them together and also Check if there are any Invalind Character Other than the ones Listed above. E.G MCCXXVI = 1226 Another Example.... Enter the First Number MCCXXVI The first num is 1226 Enter the Second Number LXVIII The second Number is 69 Enter the Desired Arithemtic operation : + The sum of MCCXXVI and LXVIII is MCCLXXXXV (1295) Like that ![]() It's pretty simple but i am Stuck on a Part and cant get past it ![]() Anyone can help me? |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Post the code you've written so far, indicate where you're having the trouble. If you don't know about using code tags and stuff, see the FAQ.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Programming Guru
![]() ![]() ![]() |
You reference Pascal, in a C++ section? I haven't written in pascal since the early 90s... I'm sure it has changed since then, so I probably wouldn't be of much help.
__________________
http://jasonpowers.net "There are a thousand hacking at the branches of evil to one who is striking at the root." |
|
|
|
|
|
#4 |
|
Hobbyist Programmer
Join Date: Dec 2005
Posts: 118
Rep Power: 0
![]() |
Pascal itself, like C, hasn't changed, but there are extended versions: Borland Pascal and Delphi (like C++).
This sounds a bit like a homework assignment :p |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Nov 2006
Location: 163H
Posts: 215
Rep Power: 3
![]() |
I have done this thing at least 1 year and 1/2 before. I know i have the code somewhere in my libraries. Just do as DaWei said, post the code.
__________________
You never test the depth of a river with both feet. The believer is happy. The doubter is wise. Free speech carries with it some freedom to listen. The next generation will always surpass the previous one. It`s one of the never ending cycles of life. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Language display in program | Prm753 | C++ | 3 | May 30th, 2006 6:45 PM |
| Making a crossword construction program using Turbo Pascal | RedMuse | Other Programming Languages | 1 | Feb 25th, 2006 9:53 AM |
| Creating a program to test a program | sixstringartist | C | 8 | Jan 21st, 2006 2:15 PM |
| Pascal Program help | elec | Other Programming Languages | 3 | Apr 21st, 2005 10:55 PM |