Saturday, 16 June 2018

intrepreter design pattern C++

The Interpreter pattern defines a grammatical representation for a language .
Example: Roman values can be interpreted to number values.
I-->1 II-->2 III-->3 IV-->4 V-->5


=====================================






output
intrept is5
enter roman
X
intrept is0
enter roman
VIII
intrept is53
enter roman
IVVVV
intrept is4555

No comments:

Post a Comment