No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
The assignment is to implement the Banker's Algorithm using pthreads and mutex locks. We implemented the Banker's Algorithm and it works fine. When we began implementing the pthreads and mutex locks we ran into problems. We know that each process is a thread, and that the mutex lock is acquired … |
|
I am inserting all of the words in the dictionary into the unordered_set STL. For the life of me, I cannot figure out how to override the default hash function for the unordered_set. Can someone please point me in the right direction? I cannot figure out the syntax. Thank you … |
|
How do you grow a circular array? I have a front, I have a back, I have a current_size, I have a maximum_size, and of course I have the array. So, how do you grow a circular array? Thank you kindly! |
|
I am making a wheel of fortune game and have successfully figured out how to change the word that you're trying to guess into astricks *. However, I cannot figure out how to change it back once the user inputs a correct letter. The puzzle comes from the user inputting … |
|
Hello. I am making a wheel of fortune game and am getting stuck. This loop keeps repeating the first line "Incorrect input. You can only pick a vowel." Also, I can't get the phrase to read the vowel and say, "Sorry, this vowel was already revealed." If the vowel was … |
|
Function arguments and parameters are paired by name, therefore, names of corresponding arguments and parameters must be identical. Why is this statement false? Also, in cin.ignore (200, '\n'); why is the 200 there? what does it do? |
|
Hi, I'm in a beginning class in C++ and we need to make an assignment that inputs a file, prints it to the screen, and then prints it to the screen again with an underscore every 5 blanks. I got the last part to work, but I can't get it … |