Forum: C++
Dec 10th, 2006, 5:07 PM
|
|
Replies: 39
Views: 744
yeah, I think your right. The problem I stated...
yeah, I think your right. The problem I stated earlier was that all checkouts, including that one, don't actually have accurate departure settings. It supposed to be nextDeparture - 10(the total...
|
Forum: C++
Dec 9th, 2006, 10:30 PM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 9th, 2006, 7:15 PM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 9th, 2006, 7:02 PM
|
|
Replies: 39
Views: 744
OMG I WAS FREAKING.. Hell I've pretty much...
OMG I WAS FREAKING.. Hell I've pretty much rebuilt it.. But doing so gave me a good chance to notice I had another problem that doesn't really cause an issue. i forgot to base my departure times from...
|
Forum: C++
Dec 9th, 2006, 5:56 PM
|
|
Replies: 39
Views: 744
Dammit, I had it working fine and then I was...
Dammit, I had it working fine and then I was trying to add some extra functions when I got this:
error C2558: class 'Customer' : no copy constructor available or copy constructor is declared...
|
Forum: C++
Dec 9th, 2006, 4:27 PM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 9th, 2006, 3:45 PM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 9th, 2006, 10:21 AM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 8th, 2006, 9:46 PM
|
|
Replies: 39
Views: 744
Ok, don't mean to double post but I've found...
Ok, don't mean to double post but I've found another issue.
The program sets stats for every customers wait based on each line they enter. So each customer gets a deliWait, sweepsWait, and so on....
|
Forum: C++
Dec 8th, 2006, 7:45 PM
|
|
Replies: 39
Views: 744
Alrighty guys, I might have found a possible...
Alrighty guys, I might have found a possible problem.
I've formatted the output and all times are now in hour:min:sec format. Well, due to this I noticed that one of the checkout lines had a god...
|
Forum: C++
Dec 5th, 2006, 10:34 PM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 4th, 2006, 10:27 PM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 4th, 2006, 10:00 PM
|
|
Replies: 39
Views: 744
OK guys,
The program is done. The whole damn...
OK guys,
The program is done. The whole damn thing. The issue of course, is that while I don't have any build errors, it crashes upon launch. Now, instead of me sitting here and copy and pasting the...
|
Forum: C++
Dec 3rd, 2006, 5:08 PM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 3rd, 2006, 4:39 PM
|
|
Replies: 39
Views: 744
can you sort a dequeue using the STL...
can you sort a dequeue using the STL sort?
...and I've already changed everything that referenced the front of the vector to now reference the back. If figured if you could get the vector to sort in...
|
Forum: C++
Dec 3rd, 2006, 3:57 PM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 3rd, 2006, 9:55 AM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 2nd, 2006, 11:26 PM
|
|
Replies: 39
Views: 744
I was thinking by including the customer header...
I was thinking by including the customer header it would know. If not, then that kinda craps on my idea of returning a Customer object w/ newRandomCustomer. I'm sure you're aware of what I'm trying...
|
Forum: C++
Dec 2nd, 2006, 10:31 PM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 2nd, 2006, 10:06 PM
|
|
Replies: 39
Views: 744
Hello all,
What do you mean by working...
Hello all,
What do you mean by working assignment operator. Do you mean I need to overload the =?
As for the #ifndef, etc, I moved those up. And I know that I shouldn't use namespace std;...
|
Forum: C++
Dec 2nd, 2006, 7:49 PM
|
|
Replies: 39
Views: 744
|
Forum: C++
Dec 2nd, 2006, 6:32 PM
|
|
Replies: 39
Views: 744
HAHA... OMG! and I thought class ending...
HAHA... OMG! and I thought class ending semi-colons was well instilled in my programming brain... It would be something like that to partially make my evening bad... THANK YOU AREVOS... That would...
|
Forum: C++
Dec 2nd, 2006, 6:20 PM
|
|
Replies: 39
Views: 744
Final project has begun! So have the errors!
Alright, so I'm finally getting this event simulation of a grocery store underway. My first goal is to get the customers created. To start this, first and last names (which will be assigned at...
|
Forum: C++
Dec 1st, 2006, 7:29 PM
|
|
Replies: 27
Views: 635
Haha, well at least you understood me! I'm...
Haha, well at least you understood me! I'm probably going to start coding this tonight or tomorrow, so be on the lookout for actual source. I'm thinking of using a large MegaStore class, as you...
|
Forum: C++
Dec 1st, 2006, 3:41 PM
|
|
Replies: 27
Views: 635
|
Forum: C++
Dec 1st, 2006, 12:00 PM
|
|
Replies: 27
Views: 635
So you just overload the < operator as member...
So you just overload the < operator as member function for the Customer class? And due to the implementation of the sort function, where ever it is located, will recognize to use the overloaded...
|
Forum: C++
Nov 30th, 2006, 6:35 PM
|
|
Replies: 27
Views: 635
|
Forum: C++
Nov 30th, 2006, 2:55 PM
|
|
Replies: 27
Views: 635
|
Forum: C++
Nov 30th, 2006, 8:52 AM
|
|
Replies: 27
Views: 635
I've read this on a website:
To me this says...
I've read this on a website:
To me this says you can overload an operator for the sort algorithm to sort based on class objects, and their data members. Where is this operator located? Do I have...
|
Forum: C++
Nov 29th, 2006, 5:44 PM
|
|
Replies: 27
Views: 635
|
Forum: C++
Nov 28th, 2006, 7:51 PM
|
|
Replies: 27
Views: 635
But how do you manage all of these events? How...
But how do you manage all of these events? How can you organize all of this and keep up with each arrival and departure, since this is event driven, not time driven.
Also, for the deli, I want to...
|
Forum: C++
Nov 28th, 2006, 2:10 PM
|
|
Replies: 27
Views: 635
|
Forum: C++
Nov 27th, 2006, 6:50 PM
|
|
Replies: 8
Views: 166
|
Forum: C++
Nov 27th, 2006, 4:54 PM
|
|
Replies: 8
Views: 166
|
Forum: C++
Nov 27th, 2006, 2:56 PM
|
|
Replies: 27
Views: 635
An event queue sounds like the way to go. The...
An event queue sounds like the way to go. The problem I'm having is trying to figure out how to juggle the multiple queues (I'm planning on having one for each customer line - e.g. the deli, the...
|
Forum: C++
Nov 27th, 2006, 10:40 AM
|
|
Replies: 27
Views: 635
Hello again everyone,
If the customerFactory...
Hello again everyone,
If the customerFactory produces customer objects, then I'm assuming the factory.newRandomCustomer() returns a customer object and the built-in copy constructor assigns it....
|
Forum: C++
Nov 26th, 2006, 9:19 PM
|
|
Replies: 27
Views: 635
|
Forum: C++
Nov 25th, 2006, 5:31 PM
|
|
Replies: 27
Views: 635
Thanks for the great ideas Arevos:
So, for the...
Thanks for the great ideas Arevos:
So, for the random payment method, could I possibly use a random num. generator that produces value 1,2,3. If it comes up with a 1 then his/her payment method is by...
|
Forum: C++
Nov 25th, 2006, 3:14 PM
|
|
Replies: 27
Views: 635
|
Forum: Coder's Corner Lounge
Nov 25th, 2006, 2:34 PM
|
|
Replies: 12
Views: 343
|