What error is program snippet giving?
Why is the program snippet giving error? |
your compiler should tell you.
but the 'main' issue is this kinda thing:
1 2 3 4
|
int n;
std::cout << "Enter the no. of inputs:- ";
std::cin >> n;
std::string str[n];
|
c-style array needs a constant expression. do you have to use c-style arrays?
Last edited on
The Error is in line no. 14