Posts
 
Reputation
Joined
Last Seen
Ranked #2K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
4
Posts with Upvotes
3
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
2 Commented Posts
1 Endorsement
Ranked #860
Ranked #13.9K
~15.1K People Reached
This member's community profile is only visible to logged in members until they have earned 15 reputation points.
Favorite Forums
Favorite Tags
c++ x 14
c x 1
api x 1

9 Posted Topics

Member Avatar for codiene bryant

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 …

Member Avatar for dexblack_1
0
430
Member Avatar for kouty

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.

Member Avatar for ravss
1
610
Member Avatar for sfuo

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.

Member Avatar for dexblack_1
0
12K
Member Avatar for Echo89

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 …

Member Avatar for dexblack_1
0
232
Member Avatar for kamalashraf

It is not "easy" code to write. Remember there is a network and another machine involved, so many more kinds of error can occur.

Member Avatar for triumphost
0
615
Member Avatar for t2nator

Try using DAYS_PER_MONTH = 28 and replace the magic number 30 with that defined value everywhere in your code.

Member Avatar for dexblack_1
0
178
Member Avatar for mr.unknown

Try changing 'u' to be 'row' and 'i' to be 'column' the code may make more sense.

Member Avatar for sanjulovers
0
195
Member Avatar for daniel1977

Could it be as simple as adding the transaction time totalWait = totalWait + nextCustomer.getWaitingTime() + nextCustomer.getTransactionTime(); servers.setServerBusy(serverID, nextCustomer, transTime);

Member Avatar for dexblack_1
0
637
Member Avatar for nitin1
Member Avatar for dexblack_1
0
197

The End.