0

So here is an interesting problem, I'm using Visual Studio Express 2013 and I had a big function that was using dynamically allocated arrays and decided to use vectors instead, it then crashed (you couldn't kill it with task manager) so I removed the function and it still crashed (even with no reference to it), so by now my code looks like this:

#include <iostream>
#include <string>
#include <vector>
using namespace std;
int main() {
    string menu = "path; {tag1,tag2,tag3}";
    cin.get();
    return 0;
}

and it still crashes! so I remove the #include <vector> and then it works.

I'm new to vectors so I'm not sure if this is an obvious question, or I'm just missing something, but I couldn't find anything on the internet about it.

Thanks!

EDIT I've also tried it with Visual Studio 2015 and it still crashes.

2 Answers2

0

There is nothing wrong with your program. Do one thing report same thing to microsoft

0

Oops! looks like it was my AV, I disabled Avast and it worked!

Thanks anyway!