first commit

This commit is contained in:
陈赣
2026-06-03 12:43:14 +08:00
commit ba76cfae28
608 changed files with 120791 additions and 0 deletions

18
third_party/tinyexpr/tinyexpr_test.cpp vendored Normal file
View File

@@ -0,0 +1,18 @@
#include "tinyexpr.h"
#include <iostream>
int main() {
// change expression to whatever you like
std::string input = "(3 + 5) * 5 + 4^2";
do
{
// no except check
auto result = te_interp(input.c_str(), 0);
std::cout << input << " = " << result << std::endl;
std::cout << "please input math expression:" << std::endl;
std::getline(std::cin, input);
} while (input != "quit");
return 0;
}