在用DEV-CPP编译以下代码时出错 用VC++6.0则顺利通过 请问是怎么回事?
#include <algorithm>
#include <cctype>
#include <iostream>
#include <iterator>
using namespace std;
int main()
{
char a[] = "asdgafhadfjsgjgfujsrtu";
const size_t sz = sizeof a / sizeof a[0];
transform(a, a + sz, a, toupper);
copy(a, a + sz, ostream_iterator<char>(cout));
cout << endl;
system("PAUSE");
return 0;
}