cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Constructor with 2 array parameters
Constructor with 2 array parameters
Sep 5, 2013 at 4:46am UTC
jwinters
(1)
I'm making a flash card program for Chinese and my current plan is to have a class "Card" and have 2 Uint16 arrays stored in it. Is there a way to pass both arrays (of undetermined length) through the constructor? I'd like something like
CARD card[]{{{1,2,3},{4,5,6,3,4}},
{{7,8,9},{10}},
{{13,14},{16,17,18,7,2,4}},};
Topic archived. No new replies allowed.