Thanks for the tips, I really appreciate the help.
I've always been a big fan of using output commands to see what's happening, but it has yet to help in this case. I'm pretty sure its a pointer problem but I can't figure out which pointer or where because after I run the loadDrinkDB function...
I don't know about what to do with the location of the files, but here is a solution for editing the contents of the files assuming both files are the folder of your project (I'm just guessing that you would use full pathnames instead of just the filenames to correct this problem but I'm not...
Sorry for not putting all of that information in there. I was trying to keep the post relatively short while still including all of the useful information.
drinksList is an array of class drinks, unless I'm using the wrong terminology. It is defined outside of the main as
drinks...
I've been working on a creating my own barmonkey www.barmonkey.net and I've run into problems while reading in from a file (I think that's the problem). I need to take the entries from the file and insert them into an array in my program. The file is text file with multiple entries of drinks...
Since I always had to make my own makefiles before, I had no idea that VC++ would do it for me. After messing around with different projects and probably creating every wrong project before finally trying a console project, I got it working.
Anyway, now I have a bit better understanding of how...
I've had some experience (CS classes) with UNIX based C++, but now that I'm away from school, I started working with MS VC++ because I couldn't get anything else working. Anyway, I can't figure out how to set up a makefile in VC++.
Here's a makefile I modified from a sample I found on the web...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.