Я получаю следующие два сообщения об ошибке при компиляции приведенного ниже кода для консольного приложения.Пожалуйста помоги.Я не понимаю сообщения об ошибках.Я использую Microsoft Visual Studio 2008. Когда я дважды щелкаю по сообщениям об ошибках, я перехожу к векторному включаемому файлу.
error C2039: '_Unchecked_uninitialized_move' : is not a member of 'stdext'
error C3861: '_Unchecked_uninitialized_move': identifier not found
error C2039: '_Unchecked_uninitialized_move' : is not a member of 'stdext'
error C3861: '_Unchecked_uninitialized_move': identifier not found
#include "stdafx.h"
#include <iostream>
#include <vector>
using namespace std;
int main ()
{
int scores[] = {70,80,90,100};
vector<int> scorePercent (scores, scores + sizeof(scores) / sizeof(int) );
cout << endl;
cin.get();
}
Содержимое stdafx.h
:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
// #pragma once
#include "targetver.h"
#include <stdio.h>
#include <tchar.h>
// TODO: reference additional headers your program requires here