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 7716293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:35:59+00:00 2026-06-01T02:35:59+00:00

For example if I had one or more 2D vectors and I just want

  • 0

For example if I had one or more 2D vectors and I just want to store them in a data base for example.

 vector<vector<double>> one2DVector;
 vector<vector<double>> two2DVector;

 //Obviously can't do that but this is what I want to do
 vector<vector> dataBase;

 dataBase.push_back(one2DVector);
 dataBase.push_back(one2DVector);
  • 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-06-01T02:36:00+00:00Added an answer on June 1, 2026 at 2:36 am

    You need to declare it like this:

    vector<vector<vector<double>>> dataBase;
    

    Note that if you using C++98 and not C++11, you need to put spaces between the > brackets.

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

Sidebar

Related Questions

For example, if I had a Linq to SQL data context, or if I
With one more requirement - that the resulting vector is in the same order
I've never had the need catch more than one exception at a time before.
I want to make my entire li clickable. If I only had one line
I was wondering if anyone had an example of what an array would look
I would like to generate a combination of words. For example if I had
For example, suppose I had written my own class which allowed me to record
I'm working through Aaron Hillegass' book, specifically the lottery example. I had a question
I am coding a breakout clone. I had one version in which I only
The Zipper data structure is great when one wants to traverse a tree and

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.