Headerdatei Wertetabelle :Ausgabe der Werte
This commit is contained in:
parent
5571614e0e
commit
1d9e56c7db
1 changed files with 43 additions and 0 deletions
43
Hazard/Hazard/Wertetabelle.h
Normal file
43
Hazard/Hazard/Wertetabelle.h
Normal file
|
@ -0,0 +1,43 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
#include "PrimImplikantCollection.h"
|
||||
#include "Cparser.h"
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
unsigned int numElements ;
|
||||
bool KNF ;
|
||||
|
||||
#ifndef WERTETABELLE
|
||||
#define WERTETABELLE
|
||||
|
||||
|
||||
class Wertetabelle{
|
||||
|
||||
|
||||
public:
|
||||
|
||||
int print(PrimImplikantCollection* &PIC){
|
||||
|
||||
cout << "KNF=" << KNF << endl;
|
||||
cout << "Dezimalwerte\t|\tAusgangWerte(y)" << endl;
|
||||
for (unsigned int i = 0; i < numElements; i++){
|
||||
cout << "\t" << i << "\t\t|\t" << PIC->valueAt(i) << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Wertetabelle(PrimImplikantCollection* &PIC){ // Konstruktor
|
||||
print(PIC);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue