Because when I try to bring all my Dev-C++ code over to VS they run slower, I have to include an extra header "stdafx.h", and they all seem to have errors in my old code.
I don't want to have 2 C++ compilers, I just want 1.
Code that runs perfectly fine on Dev-C++ without any warnings gets errors in VS, like:
#include <iostream>
using namespace std;
int main(){
int x;
cin>>x;
int a[x];
for(int i=0; i<x; i++)
a[i] = i;
for(int i=0; i<x; i++)
cout<<i<<": "<<a[i]<<endl;
system("PAUSE");
return 0;
}
That runs like it should in Dev, but in VS it says can't allocate array of size 0: ( int a[x]; )
I think this is because the compiler in VS doesn't recognize "cin".
NOTE: if using VS then add #include "stdafx.h" to the top.
Then there is also some windows code that doesn't seem to work right in VS, like loading DLL's
"The boldness of asking deep questions may require unforseen flexibility if we are to accept the answers." --Greene