Oh! Never mind, I caught my mistake:
Value0.SetCost(Cost);
Value0.SetCost(Loc);
Value0.SetCost(Stock);
They were all SetCost -_-
Thanks again for your help, appreciated it!
Type: Posts; User: RiceFiend
Oh! Never mind, I caught my mistake:
Value0.SetCost(Cost);
Value0.SetCost(Loc);
Value0.SetCost(Stock);
They were all SetCost -_-
Thanks again for your help, appreciated it!
Thanks again anon! I worked long and hard on this program and it finally runs ^^. I've added a menu() and 2 more strings in the class. Everything runs fine, but when I display or search, the values...
Thank you anon for replying! What do you mean by "create an instance FileAccess in main and call its WriteToFile method"? Sorry if I may seem slow, but I am new to programming.
Thanks for replying! Okay, so I've made the following changes, but still no dice:
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
Thanks for replying! How would I go about fixing this?
Hello,
I have the Fill, Show, Remove, and Find functions working properly, but I cannot get my WriteToFile function to work. I know that there is a problem involving WriteToFile("Success"); but I...