Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 C 字符串转换为复杂的表达式并简化它。
例如对于字符串:
(3+2i)² + 6-i-3+2i
输出应该是:8+13i;
8+13i
您需要一个可以解析数学表达式的库。要么自己编写,要么采用现有的之一(例如ExprTk)。