- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 3
- Upvoting Members
- 4
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
It took me a long time to learn what is important in life was exactly what I had been told all along. Accepting my humanity and that of others has had to become a conscious daily action in order for me to enjoy the simple things in life.
9 Posted Topics
Re: First inputFile.open(Cust_001.dat); should be inputFile.open("Cust_001.dat"); Second: The file Cust_001.dat must be in your 'current' directory i.e. Your command prompt may show it as `C:\Users\user_name` or some such location. Third: You must use the `CD` (change directory) command to go to where your .dat file is located. Use the `DIR` command … | |
Re: Before the scanf functions store values in the variables they could contain anything. So evaluating the result before these variables are set should give you random looking results. Always initialize variable at the place they are declared. This would then give you a better clue as to what is happening. | |
Re: Grokked that last code post in <20 seconds. Obvious to anyone, no comments required. Pointless code though. Runs in a DOS command prompt and prints a 24h clock timer. | |
Re: I recommend you add assertions to ensure correctness in your Debug build. void Call() { assert(CallbackClass != nullptr); CallbackClass->Call(); } Try to use class member names that don't look like class type names. Returning a Callback object by copy that is expected to manage its copy of the CallbackClass object … | |
Re: It is not "easy" code to write. Remember there is a network and another machine involved, so many more kinds of error can occur. | |
Re: Try using DAYS_PER_MONTH = 28 and replace the magic number 30 with that defined value everywhere in your code. | |
Re: Try changing 'u' to be 'row' and 'i' to be 'column' the code may make more sense. | |
Re: Could it be as simple as adding the transaction time totalWait = totalWait + nextCustomer.getWaitingTime() + nextCustomer.getTransactionTime(); servers.setServerBusy(serverID, nextCustomer, transTime); | |
Re: Here is another [C++ Reference Site](http://en.cppreference.com/w/) |
The End.