Click here to Skip to main content
15,884,388 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: LNK1123: failure during conversion to COFF: file invalid or corrupt Pin
forkbomber30-Jun-12 2:17
forkbomber30-Jun-12 2:17 
AnswerRe: LNK1123: failure during conversion to COFF: file invalid or corrupt Pin
Richard MacCutchan30-Jun-12 2:46
mveRichard MacCutchan30-Jun-12 2:46 
GeneralRe: LNK1123: failure during conversion to COFF: file invalid or corrupt Pin
forkbomber30-Jun-12 3:47
forkbomber30-Jun-12 3:47 
GeneralRe: LNK1123: failure during conversion to COFF: file invalid or corrupt Pin
Richard MacCutchan30-Jun-12 5:57
mveRichard MacCutchan30-Jun-12 5:57 
AnswerRe: LNK1123: failure during conversion to COFF: file invalid or corrupt Pin
fat_boy30-Jun-12 20:40
fat_boy30-Jun-12 20:40 
QuestionSearch in *.chm File with C++? Pin
bosfan29-Jun-12 3:10
bosfan29-Jun-12 3:10 
AnswerRe: Search in *.chm File with C++? Pin
bosfan29-Jun-12 6:13
bosfan29-Jun-12 6:13 
Generalhelp about C++ STL container Pin
Falconapollo28-Jun-12 5:40
Falconapollo28-Jun-12 5:40 
C++
    typedef std::set<int> _OWN_TYPE;
_OWN_TYPE s;
int n = 10;
while(n--)
    s.insert(n);

std::copy(s.begin(), s.end(), std::ostream_iterator<int>(std::cout, "\t"));
std::cout << std::endl;

cout << typeid(_OWN_TYPE::iterator).name() << endl;
std::vector<_OWN_TYPE::iterator> vec;

Now I'm confused about how to put the interator in [s.begin(), s.end()] into vec by one line code(I would prefer it occur in the construction of vec).

I don't want to use the following code, it's redundancy :
C++
    for (_OWN_TYPE::iterator itr = s.begin(); itr != s.end(); ++itr)
{
    vec.push_back(itr);
}



Any one can help me?
GeneralRe: help about C++ STL container Pin
Chris Losinger28-Jun-12 6:11
professionalChris Losinger28-Jun-12 6:11 
GeneralRe: help about C++ STL container Pin
Falconapollo28-Jun-12 15:07
Falconapollo28-Jun-12 15:07 
GeneralRe: help about C++ STL container Pin
Maximilien28-Jun-12 7:27
Maximilien28-Jun-12 7:27 
GeneralRe: help about C++ STL container Pin
Falconapollo28-Jun-12 15:07
Falconapollo28-Jun-12 15:07 
GeneralRe: help about C++ STL container Pin
Aescleal28-Jun-12 8:41
Aescleal28-Jun-12 8:41 
GeneralRe: help about C++ STL container Pin
Falconapollo28-Jun-12 15:08
Falconapollo28-Jun-12 15:08 
GeneralRe: help about C++ STL container Pin
Aescleal29-Jun-12 1:03
Aescleal29-Jun-12 1:03 
GeneralRe: help about C++ STL container Pin
Falconapollo29-Jun-12 16:18
Falconapollo29-Jun-12 16:18 
GeneralRe: help about C++ STL container Pin
Falconapollo29-Jun-12 16:25
Falconapollo29-Jun-12 16:25 
QuestionChange CBS_DROPDOWN on runtime ? Pin
_Flaviu28-Jun-12 4:31
_Flaviu28-Jun-12 4:31 
AnswerRe: Change CBS_DROPDOWN on runtime ? Pin
Albert Holguin28-Jun-12 5:32
professionalAlbert Holguin28-Jun-12 5:32 
GeneralRe: Change CBS_DROPDOWN on runtime ? Pin
_Flaviu28-Jun-12 6:01
_Flaviu28-Jun-12 6:01 
GeneralRe: Change CBS_DROPDOWN on runtime ? Pin
David Crow28-Jun-12 6:02
David Crow28-Jun-12 6:02 
AnswerRe: Change CBS_DROPDOWN on runtime ? Pin
Albert Holguin28-Jun-12 7:22
professionalAlbert Holguin28-Jun-12 7:22 
GeneralRe: Change CBS_DROPDOWN on runtime ? Pin
_Flaviu28-Jun-12 8:27
_Flaviu28-Jun-12 8:27 
GeneralRe: Change CBS_DROPDOWN on runtime ? Pin
Maximilien28-Jun-12 10:14
Maximilien28-Jun-12 10:14 
GeneralRe: Change CBS_DROPDOWN on runtime ? Pin
Albert Holguin28-Jun-12 11:12
professionalAlbert Holguin28-Jun-12 11:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.