Urgent need help: a translator for pascal source program

null
lugangxuAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
akapurConnect With a Mentor Commented:
Pascal is a procedural language.  So a translator will never be able to produce object oriented C++ code if that is what you want.  The best you can hope for is procedural code which is essentially C.  If you compile the C generated by p2c or ptoc with a C++ compiler you will get all the benefits of type checking that you would with C++ procedural code.  The only difference between procedural C code and procedural C++ code would be the use of streams instead of C I/O statements anyway. I suggest you use p2c of ptoc and if you must change the I/O statements to use streams instead.  Note that by doing this you will be slowing down your prog.  If you want an object oriented implementation of your program you will have to redesign your program.  No current program can convert a procedural design into object oriented design.  
0
 
lugangxuAuthor Commented:
Adjusted points to 215
0
 
lugangxuAuthor Commented:
Edited text of question
0
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

 
lugangxuAuthor Commented:
Adjusted points to 220
0
 
lugangxuAuthor Commented:
Edited text of question
0
 
lugangxuAuthor Commented:
I've successfully made the  program myself!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.