-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.cpp
38 lines (29 loc) · 868 Bytes
/
main.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
* Click nbfs://nbhost/SystemFileSystem/Templates/cppFiles/main.cc to edit this template
*/
/*
* File: main.cpp
* Author: anton
*
* Created on 20 luglio 2023, 16:26
*/
#include <iostream>
#include "BooleanFunction.h"
using namespace std;
int main(int argc, char** argv) {
int variables;
do{
cout << "Insert variable's number(greater than 0): ";
cin >> variables;
cout << endl;
}while(variables <= 0);
cin.ignore(1);
BooleanFunction funzione(variables);
funzione.askMinterms();
funzione.printMinterms();
funzione.McCluskeyMinimize();
cout << "Function's prime implicants are:" << endl;
funzione.printPrimeImplicants();
return 0;
}