A
Arthur Sinko
Hi,
Is it possible to answer the following question: what is the difference
between two declarations:
vector<double> a(n);
and
double a[n];
When I put, say, n=1000000, the program with the first line is working well,
whereas with the second it terminates with error. What is the maximum
possible array that can be defined this way? For n=100000 both declarations
works fine.
Compiler g++.
Thank you.
Arthur
Is it possible to answer the following question: what is the difference
between two declarations:
vector<double> a(n);
and
double a[n];
When I put, say, n=1000000, the program with the first line is working well,
whereas with the second it terminates with error. What is the maximum
possible array that can be defined this way? For n=100000 both declarations
works fine.
Compiler g++.
Thank you.
Arthur