Home > Net >  The string conversion
The string conversion

Time:10-10

Everything else is more complex, 10th floor is straightforward

CodePudding user response:

If only contains + - */, such as the direct apart, save the even line

CodePudding user response:

references 9 f yuqiz1981 response:
Quote: refer to the eighth floor wise men know already should good karma response:

May not be clear, actually written in lua, other don't meet my needs, you this match,

accidentally

CodePudding user response:

 

Microsoft. JScript. Vsa. VsaEngine ve=Microsoft. JScript. The Vsa. VsaEngine. CreateEngine ();
Return Microsoft. JScript. Eval. JScriptEvaluate (sExpression, ve);

CodePudding user response:

convert directly convert line not line?

CodePudding user response:

What language? Need to know what language to change

CodePudding user response:

reference Liu Cai ghost reply: 3/f
I used to be using to perform the expression of the datatable,,

System. Data. DataTable dt=new System. Data. The DataTable ();
Var Result=dt.Com pute (" your string ", "");

Such an error, how to solve

CodePudding user response:

The lua scripting language

CodePudding user response:

The
reference 16 floor dignity Di Di response:
what language? Need to know what language to change
lua language

CodePudding user response:

'5 + 3 * 2' - '0'

CodePudding user response:

The
reference 20 floor qq_43572911 response:
'5 + 3 * 2' - '0'
don't understand! Only on the single quotation marks?

CodePudding user response:

Whether characters digital, digital transformation, and then do operation

CodePudding user response:

Can be directly in front of add (int) casting type

CodePudding user response:

Can be performed with the help of the datatable expression,,

System. Data. DataTable dt=new System. Data. The DataTable ();
Var Result=dt.Com pute (" your string ", "");

CodePudding user response:

Expression
Simple, if judge bai, I has been in the BBS reply

CodePudding user response:

The Lua language you Posting to c #, affirmation is trouble.
The lua language is very simple
STR="5 + 3 * 2"
F=load (" return ".. STR);
N=f ();
Print (n)

CodePudding user response:

iicup reference 27 reply:
Lua you Posting to the c # language, must be a trouble.
The lua language is very simple
STR="5 + 3 * 2"
F=load (" return ".. STR);
N=f ();
Print (n)
give n assignment error!

CodePudding user response:

Define parameter transformation, then speak STR is transformed into an int

CodePudding user response:

references that struck the 30th floor chalkbox response:
define parameter transformation, then speak STR into int
lua scripting language not int
  •  Tags:  
  • C#
  • Related