I may just be having a brain fart, upon doing the bubble sort algorithm, of course, I encountered a problem. Any help will be golden. The problem is to do with the "float numbers[n];" and the "std:string c;".
int n = 0;
cout << "Enter value of N: ";
cin >> n;
float numbers[n];
cout << "You will enter " << n << " numbers." << endl;
for (int i = 0; i < n; i++) {
std:string c;
cin >> c;
numbers[i] = atof(c.c_str());
}