Can anybody tell me why this code gives me errors?Errors:Code:ifstream infile("text.txt");
infile >> numrecords_str;
numrecords = atoi(numrecords_str);
Record records[numrecords];
ThanksCode:error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2133: 'records' : unknown size