Enhance conding style
This commit is contained in:
parent
e1614a62e6
commit
e61c4be44c
1 changed files with 17 additions and 20 deletions
|
@ -17,13 +17,14 @@ void Wertetabelle::Print()
|
||||||
{
|
{
|
||||||
printHeader();
|
printHeader();
|
||||||
|
|
||||||
|
int w = (uint)ceil(log10((float)numElements));
|
||||||
for (uint i = 0; i < numElements; i++)
|
for (uint i = 0; i < numElements; i++)
|
||||||
{
|
{
|
||||||
cout << "| "; // => |
|
cout << "| "; // => |
|
||||||
cout << setfill(' ') << setw((uint)ceil(log10((float)numElements))) << i; // => 4
|
cout << setfill(' ') << setw(w) << i; // => 4
|
||||||
cout << " |"; // => |
|
cout << " |"; // => |
|
||||||
*fot << "| "; // => |
|
*fot << "| "; // => |
|
||||||
*fot << setfill(' ') << setw((uint)ceil(log10((float)numElements))) << i; // => 4
|
*fot << setfill(' ') << setw(w) << i; // => 4
|
||||||
*fot << " |"; // => |
|
*fot << " |"; // => |
|
||||||
this->printI(i); // => 0 1 0 0
|
this->printI(i); // => 0 1 0 0
|
||||||
cout << "| "; // => |
|
cout << "| "; // => |
|
||||||
|
@ -36,11 +37,7 @@ void Wertetabelle::Print()
|
||||||
cout << endl; // ==> | 4 | 0 1 0 0 | 1 | 0 0x1 4
|
cout << endl; // ==> | 4 | 0 1 0 0 | 1 | 0 0x1 4
|
||||||
*fot << endl; // ==> | 4 | 0 1 0 0 | 1 | 0 0x1 4
|
*fot << endl; // ==> | 4 | 0 1 0 0 | 1 | 0 0x1 4
|
||||||
|
|
||||||
this->printI(i); // => 0 1 0 0
|
|
||||||
this->printPrimImplikanten(i); // => 0 0x1 4
|
|
||||||
|
|
||||||
if (i > 0 && i % 31 == 0 && numElements - i > 5) // reprint header so you dont have to scroll
|
if (i > 0 && i % 31 == 0 && numElements - i > 5) // reprint header so you dont have to scroll
|
||||||
//cout << this->makeHeader() << endl;
|
|
||||||
printHeader();
|
printHeader();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue