真值表生成C++
离散数学使用C++实现真值表的生成说明: !(否定)、 *(合取)、+(析取)、-(条件)、=(双条件)只识别英文字符#include <iostream>#include <cstring>#include <cmath>using namespace std;//获取公式中的变量 共有几个,及都是什么 int getAlpha(char sentence[], char a[]){ int num = strlen(sentence ); in
原创
2020-06-19 20:23:45 ·
1453 阅读 ·
0 评论