Home > Back-end >  Arbitrary function C language input, the DOS window simulate motion trajectory
Arbitrary function C language input, the DOS window simulate motion trajectory

Time:09-22

Function of the input is a string type, how to put it into a callable function?

CodePudding user response:

What do you mean? Can describe the specific point?

CodePudding user response:

The
reference 1/f, Simple, Soft reply:
what do you mean? Can describe the specific point?

You input a function, then the output corresponding to the coordinates of the
For example: input y=x ^ 2, the output (1, 1), (2, 4), (3, 9),,,

CodePudding user response:

You need to define in advance good input function, such as input corresponding function is fun1 aaa, BBB input, the corresponding function fun2, etc., is mainly must have the corresponding table

CodePudding user response:

reference 3 floor is Simple - Soft reply:
you need to define in advance good input function, the corresponding functions such as input aaa's fun1, enter BBB, corresponding function fun2, main is to have a corresponding table

I probably understand what you mean, but this is too complicated? After all, I can define the function there are innumerable

CodePudding user response:

references to Jennie, 4/f, Libra response:
Quote: refer to the third floor Simple - Soft reply:

You need to define in advance good input function, such as input corresponding function is fun1 aaa, BBB input, the corresponding function fun2, etc., is mainly must have the corresponding table

I probably understand what you mean, but this is too complicated? After all, I can define the function have countless


If well if you want to support, also can parse the input content, like the compiler analysis expression,

CodePudding user response:

references to Jennie, 4/f, Libra response:
Quote: refer to the third floor Simple - Soft reply:

You need to define in advance good input function, such as input corresponding function is fun1 aaa, BBB input, the corresponding function fun2, etc., is mainly must have the corresponding table

I probably understand what you mean, but this is too complicated? After all, I can define the function have countless

So that your definition to design a set of semantic analysis system, and then calculated according to the priority order
  • Related