So now I have a “training” task: to implement an engineering calculator in C ++
I can do in the form of the class " calc
" which
- accepts
std::string
- handles exceptions (without throwing them out) that can be obtained via
get_error();
(optional) - parses the string itself into the tree and counts it
and accordingly I can make a wrapper-interface in C++ Builder
wrapper will do:
- form the string
std::string
orstd::char*
- pass string to "
calc
" - asking "
calc
" are there any errors? - take from "
calc
" the object "error
" in which is stored: error text + position_in_string - get the result of the decision
I want to know:
- How much hemorrhoids will the creation of a wrapper interface in
android::java
and screwing my class "calc
"? - Will hemorrhagic addiction to
hardware
? - underwater rocks ?
ps I have a choice, therefore I ask
write all this in
С++
(now and with high quality)or on
java
(in a year when I’m takingjava
, and now jot down a bicycle, purely for evaluation ...)