test push der aktuellen quelldateien

This commit is contained in:
cigerxwinchaker 2019-11-07 18:05:59 +01:00
parent 68dfe30c69
commit 121ae391c0
2 changed files with 4 additions and 3 deletions

View File

@ -22,10 +22,10 @@ int main(int argc, char** argv)
//if verschieden information ausgaben //if verschieden information ausgaben
if(eingabe == "info") if(eingabe == "info")
{ {
std::cout << "OUTPUT ------------------------ OUTPUT" << std::endl; std::cout << "OUTPUT ------------------------ OUTPUT\n" << std::endl;
std::cout << "memory ID: " << shmget(impl.sharedMemoryKey, 0, 0) << std::endl; std::cout << "memory ID: " << shmget(impl.sharedMemoryKey, 0, 0) << std::endl;
std::cout << "Max memory Size: " << Max_Memory_Size << std::endl; std::cout << "Max memory Size: " << Max_Memory_Size << std::endl;
std::cout << "OUTPUT ------------------------ OUTPUT" << std::endl; std::cout << "OUTPUT ------------------------ OUTPUT\n" << std::endl;
//Memory that is used now //Memory that is used now
//outprint of all memory //outprint of all memory
} }

View File

@ -23,6 +23,7 @@ std::string getAnswerFromUser()
std::cout << "wrong input: pls answer with (y) for yes, (n) for no, or (override)\n"; std::cout << "wrong input: pls answer with (y) for yes, (n) for no, or (override)\n";
getAnswerFromUser(); getAnswerFromUser();
} }
return "-0";
} }
@ -48,7 +49,7 @@ void initSharedMemory(void) {
initSharedMemory(); initSharedMemory();
} }
} else { } else {
std::cout << "Shared Memory ist (Re-) allocated with Key: " << impl.sharedMemoryKey << std::endl; std::cout << "Shared Memory is (Re-) allocated with Key: " << impl.sharedMemoryKey << std::endl;
} }
} else { } else {
std::cerr <<"key -> " << impl.sharedMemoryKey << " is not allowed here " << std::endl; std::cerr <<"key -> " << impl.sharedMemoryKey << " is not allowed here " << std::endl;