Thanks everyone for their input. I'm down to 6 errors (yay!!! from triple digit error to single digit error) now which I think was a huge step from 200+ errors... Next time I have an assignment, I'll...
Type: Posts; User: brooklyn
Thanks everyone for their input. I'm down to 6 errors (yay!!! from triple digit error to single digit error) now which I think was a huge step from 200+ errors... Next time I have an assignment, I'll...
Oh, output is suppose to be part of the fstream that prints out to an output.txt. I have it in my main and I named it output. Oh, and I didn't realize that it wasn't in curly brackets. Thanks a lot....
I think I did what everyone said in my other thread and once again, reduced a bunch of errors. I started with 200+ errors but I'm down to around 40. Most of it has to do with the output part in my...
Thanks for the help, that reduced my error list by a third actually. One of the many problems I'm having is
void inventoryItem::inventoryItem ( string n, int q, double c )
{
vector <...
Thanks to zuk and Daved and elad for giving me some pointers and insights. Like one of them said to get the idea before I start putting them into code, I did and they're in code. Except the codes are...
That shows almost exactly what I have to do. Except that in that program
float to_add = 15.33;
int item_to_change = 4;
they're declared. I have to read them off the input file which the...
Thanks again. :)
I understood what Zuk did by finding item 2 and replacing zwei with two:
I see what you did there. Very nice. ;) But what if "one" and "two" were integers say:
item 1...
wow... that is...
Thanks
So I can't do like
Header file:
public:
inputnewitemd(string n, int q, double c)
:itemNumber(n), quantity(q), cost(c);
Thank you both elad and Daved soooooooo much. At first, when I came to this board, I'm like "oh I'm probably not going to get any help but it's worth a shot," but that's going to help me a lot. :D...
Oh... I'm doing that as I go along, writing it down and then putting the code in.
Does anyone know where I can find a sample where it uses vectors and class in one program?
Hi,
I'm trying to include multiple things into a vector. My program is suppose to read from an input file that looks something like
add 12345 12.50 50
add - tells me I need to add this to a...