Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3957262
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:28:07+00:00 2026-05-20T02:28:07+00:00

I have really heavy task to achieve and I haven’t found any solution good

  • 0

I have really heavy task to achieve and I haven’t found any solution good enough. So, here is the description:
– task is to evaluate multiple single dimension arrays which number can vary
– good news is that it is possible to specify types of arrays

And desirable way of doing it:
– creating a class with constructor that accepts variable number of arrays
– these arrays should be also used as properties (private members), so multiple operations can be done on(with) them during lifecycle of object

How I tried to do it:
– constructor member function with variable number of paramaters (I’m not sure why this doesn’t work)
– constructor with vector should be better way, but how to store arrays that type is specified in separate array, meaning you can’t expect certain datatype for certain array in advance
– I tried to declare variable number of arrays as private members with preprocessor, but it seems loops and other code do not work well inside private: declaration

Any idea from anybody?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T02:28:07+00:00Added an answer on May 20, 2026 at 2:28 am

    constructor that accepts variable number of arrays:

    vector< vector<T> > ?
    

    the inner vectors can be of different sizes but must be of the same type.

    constructor member function with variable number of parameters

    You can use a function with variable number of parameters that creates a class, look at how boost::bind works, that takes lots of different parameter lists.

    boost mpl may answer what you are trying to do, although it is rather unclear.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We’ve found that the unit tests we’ve written for our C#/C++ code have really
I have never really found the design view in Visual Studio useful when developing
If we have really heavy-processes system where process spawning is made for some kind
I have a java class that does really heavy bit decoding and manipulation. This
I have an application generating a really heavy big log file every days (~800MB
In php, I have heard that too much singleton is not really a good
I have really basic question. How can I get form id by input element
I have really no idea why I'm asking this as this a really completely
Im new to iPhone development and I have really taken this to me. I
I've got a program where a lot of classes have really complicated configuration requirements.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.