Hey, I am working on a project and I want to know how to return a class object that is a Character Array. I am having trouble with it and can't find out any way to do this. Thank you for taking the time to help (:
TheFearful
0
Newbie Poster
Recommended Answers
Jump to PostJust change your vector to array/char*.. it'll do the same thing.
class SomeObjectClass { private: vector<char> DataHolder; public: SomeObjectClass(){} ~SomeObjectClass(){} vector<char> SomeFunc(SomeObject &Obj) { return DataHolder; } };
All 3 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.