Hi, have the following simple code:
The error (EXC_BAD_ACCESS) on the line
Code:
#include <iostream>
#include <vector>
#include <string>
using std::string;
using std::vector;
int main () {
vector<int> testvector;
testvector[0]=1;
return 0;
}
The error (EXC_BAD_ACCESS) on the line
Code:
testvector[0]=1;