Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Showing results 1 to 40 of 210
Search took 0.07 seconds.
Search: Posts Made By: codylee270
Forum: C++ Dec 10th, 2006, 5:07 PM
Replies: 39
Views: 744
Posted By codylee270
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
Posted By codylee270
better yet, screw it. I've been doing this thing...

better yet, screw it. I've been doing this thing too long. I've went ahead and changed it back.

If you run the program now, with the files attached below, you get a longest line length of 0 for...
Forum: C++ Dec 9th, 2006, 7:15 PM
Replies: 39
Views: 744
Posted By codylee270
Alright, I've made the changes to fix the issue...

Alright, I've made the changes to fix the issue of adding on time to checkout per item, but not I get negative times in the express, and regular stat printout... also I get line sizes and longest...
Forum: C++ Dec 9th, 2006, 7:02 PM
Replies: 39
Views: 744
Posted By codylee270
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
Posted By codylee270
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
Posted By codylee270
Since time is short, and I'm currently writing a...

Since time is short, and I'm currently writing a lengthy report on this project, I'm going to go with option #1. I though by passing the original vector to the MegaStore constructor i was...
Forum: C++ Dec 9th, 2006, 3:45 PM
Replies: 39
Views: 744
Posted By codylee270
Hey Dark, I tried this: int longest =0; int...

Hey Dark,

I tried this:

int longest =0;
int index;
for(i=0; i<1000; i++)
{
if(custVect[i].getDeliWait() > longest)
{
Forum: C++ Dec 9th, 2006, 10:21 AM
Replies: 39
Views: 744
Posted By codylee270
OMG, another copy error it looks like. You are an...

OMG, another copy error it looks like. You are an absolute life saver.. I would have never found that, didn't even think to look in that part.

Alrighty, I've got one more issue and I think I'm going...
Forum: C++ Dec 8th, 2006, 9:46 PM
Replies: 39
Views: 744
Posted By codylee270
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
Posted By codylee270
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
Posted By codylee270
DARK!! I meant to get back to you sooner, but you...

DARK!! I meant to get back to you sooner, but you have literally saved my life... lol.. I corrected all of what you found, and I even corrected that god awful neg number in the output and formatted...
Forum: C++ Dec 4th, 2006, 10:27 PM
Replies: 39
Views: 744
Posted By codylee270
oops... sorry... let me try again.. well, for...

oops... sorry... let me try again..

well, for one the updated .zip is below. 2) the compiler actually did not give me an error for the missing (), that's weird...
Forum: C++ Dec 4th, 2006, 10:00 PM
Replies: 39
Views: 744
Posted By codylee270
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
Posted By codylee270
So, if the dequeue is sortable, is all I have to...

So, if the dequeue is sortable, is all I have to do change where I created the vector and replace "vector" with deque?
Forum: C++ Dec 3rd, 2006, 4:39 PM
Replies: 39
Views: 744
Posted By codylee270
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
Posted By codylee270
OK.. since VS doesn't have the vector pop_front...

OK.. since VS doesn't have the vector pop_front operation (which sucks) I need someone's advice.

When I originally thought I was going to be able to use the pop_front operation that my Data...
Forum: C++ Dec 3rd, 2006, 9:55 AM
Replies: 39
Views: 744
Posted By codylee270
Alrighty.. I included the Customer header inside...

Alrighty.. I included the Customer header inside the customerFactory header, and we're golden so far... Today I'm going to write the actual simulation using one big megastore class. Check back later...
Forum: C++ Dec 2nd, 2006, 11:26 PM
Replies: 39
Views: 744
Posted By codylee270
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
Posted By codylee270
The one error, the syntax error, says I have an...

The one error, the syntax error, says I have an issue in my customerFactory class at my newRandomCustomer definition: I've commented the location:

//CECS 302 - CODY S-----
#ifndef...
Forum: C++ Dec 2nd, 2006, 10:06 PM
Replies: 39
Views: 744
Posted By codylee270
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
Posted By codylee270
OK, everything for the customerFactory class and...

OK, everything for the customerFactory class and the relevant constructor for the customer class has been written. Now, I'm going to have to run a for loop 1000 times to create 1000 random...
Forum: C++ Dec 2nd, 2006, 6:32 PM
Replies: 39
Views: 744
Posted By codylee270
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
Posted By codylee270
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
Posted By codylee270
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
Posted By codylee270
Using your implementation a few posts above, why...

Using your implementation a few posts above, why did you pass a reference to a customer object. I see that you are using this, so how does the sort function know the invoking object? Does the object...
Forum: C++ Dec 1st, 2006, 12:00 PM
Replies: 27
Views: 635
Posted By codylee270
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
Posted By codylee270
I'm pretty familiar with operator overloading, my...

I'm pretty familiar with operator overloading, my question is where in the sort function syntax is there a greater than or lesser than operator. Could you explain the use of the sort function with...
Forum: C++ Nov 30th, 2006, 2:55 PM
Replies: 27
Views: 635
Posted By codylee270
how do I use the overloaded operator in a call to...

how do I use the overloaded operator in a call to the sort operator? I'm trying to find info on the STL sort and I'm having a harder time than I thought finding what I need. Can you enlighten me?
Forum: C++ Nov 30th, 2006, 8:52 AM
Replies: 27
Views: 635
Posted By codylee270
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
Posted By codylee270
well, I had a long chat with my professor today,...

well, I had a long chat with my professor today, and I got somewhat of a good idea how to manage the movement, but one thing I know I'm going to need is to figure out how to use the STL vector sort...
Forum: C++ Nov 28th, 2006, 7:51 PM
Replies: 27
Views: 635
Posted By codylee270
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
Posted By codylee270
nothing eh...

nothing eh...
Forum: C++ Nov 27th, 2006, 6:50 PM
Replies: 8
Views: 166
Posted By codylee270
It's odd to have a C++ class that waits until the...

It's odd to have a C++ class that waits until the end to cover classes...
Forum: C++ Nov 27th, 2006, 4:54 PM
Replies: 8
Views: 166
Posted By codylee270
Is this a C++ class or a C/C++ combo?

Is this a C++ class or a C/C++ combo?
Forum: C++ Nov 27th, 2006, 2:56 PM
Replies: 27
Views: 635
Posted By codylee270
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
Posted By codylee270
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
Posted By codylee270
anyone else?

anyone else?
Forum: C++ Nov 25th, 2006, 5:31 PM
Replies: 27
Views: 635
Posted By codylee270
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
Posted By codylee270
Need help making a game plan for final programming project!

Ok guys, I'm near the end of my Info. Structures class (very frustrating but definitely worth every penny of tuition). My professor has given us a final project to do and it's an event simulation....
Forum: Coder's Corner Lounge Nov 25th, 2006, 2:34 PM
Replies: 12
Views: 343
Posted By codylee270
Thank you, Steve, for the iMac (for now, until...

Thank you, Steve, for the iMac (for now, until marketshare increases)!
Better yet, thank you unix permissions...
Showing results 1 to 40 of 210

 
Forum Jump



DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:36 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC