So I'm still learning C++ and I can't figure out what I am doing wrong. I am using the Code::Blocks IDE and despite including the vector and array header it gives me a big list of errors and says nothing was declared in this scope. The code is very basic:
#include <iostream>
#include <vector>
#include <array>
#include <string>
using namespace std;
int main()
{
string b = const, 10;
vector<string> string1(b);
array<string, b> string2;
return 0;
}
Ok, for the record, THIS IS WHAT I WAS TRYING TO DO:
"Declare a vector object of 10 string objects and an array object of 10 string objects. Show the necessary header files and don’t use using. Do use a const for the number of strings."