저는 지난 2 주 동안 stl을 연구 해왔고 vector<T>, deque<T> 및 list<T>의 많은 부분을 다루었습니다. 내가 사용하고있는 모든 시간은 push_back(), push_front(), insert()입니다. 현재는하지만, 내가 "삽입 반복자"에 소개했던 다음되는 : push_back()에 유사하고 수행 back_insert_iterat
클래스 테스트 일정한 데이터 멤버와 #include <algorithm>
#include <iterator>
#include <vector>
template <typename T>
struct MinMax { T min, max; };
template <typename T>
using TList = std::vector<T>;
templa
하나의 파일에서 set_intersection 함수를 사용하는 코드를 작성 중이며이 함수의 마지막 매개 변수는 삽입 자라고 가정합니다. 내가 코드를 컴파일 할 때, 나는 다음과 같은 오류를 참조하십시오 error C2039: 'inserter' : is not a member of 'std'
error C2873: 'inserter' : symbol ca
여기에 STL의 pdf에있는 기본 예제가 있습니다. 왜 작동하지 않습니까? #include "stdafx.h"
#include <vector>
#include <algorithm>
#include <iostream>
#include <iterator>
using namespace std;
int _tmain(int argc, _TCHAR*
QT에서 사용하는 두 가지 방법이 있습니다. PRINTR 함수는 단지 COURSE 객체의 정보를 출력하고 PRINTN은 두 벡터의 차이를 찾아서 PRINTR을 사용하여 결과를 출력합니다. PRINTR 기능은 잘 작동하지만 난 PRINTN이 일을 얻는 데 문제가 있어요 : void course::printr(vector<course*> c){
QString