Hello all, I have been working on this quite bit but not getting anywhere.
What I want to do is read unicode as argument...
for instance from command line.
./main.cpp "sin(θ)"
then in my program (in pseudo) I would like to run the string through a case statement letter by letter.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
for(int i = 0; i < len of argument; i++)
{
convert each wchar_t to a float or double or long (what ever) array
}
for (int i = 0; i < len of numeric array; i++)
{
run each member of numeric array into switchif the numeric value of θ is evaluated print out the string "theta"
}
This is for a larger project this is the piece I am stuck on.
any help or advise would be great.