Search found 3 matches

by ADCoffee
Sat Apr 17, 2010 11:45 pm
Forum: Programming Discussion
Topic: Simple C++ Question...
Replies: 12
Views: 954

Re: Simple C++ Question...

Oh...
It worked before I moved the classes to there own files.
by ADCoffee
Sat Apr 17, 2010 11:25 pm
Forum: Programming Discussion
Topic: Simple C++ Question...
Replies: 12
Views: 954

Re: Simple C++ Question...

Thanks for the reply. I think I didn't explain myself fully. I'll just copy the code directly from my class's files. (The stuff I'm having trouble with is commented out.) class header file: #ifndef armor #define #include <string> using namespace std; class armor { public: string name; int type; int ...
by ADCoffee
Sat Apr 17, 2010 10:47 pm
Forum: Programming Discussion
Topic: Simple C++ Question...
Replies: 12
Views: 954

Simple C++ Question...

I have a c++ project that is expanding and I decided I would separate the classes from the main file, but I'm having a problem. In one of my classes I have a function that calls a member array of the class. I need to use this array in other files as well so how can I declare it so it can be used wit...