20.11.2014 Views

slides - Yong Joseph Bakos

slides - Yong Joseph Bakos

slides - Yong Joseph Bakos

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

#include <br />

#include <br />

using namespace std;<br />

int main( )<br />

{<br />

short v[] = { 1, 2, 3, 4, 5, 6 };<br />

vector v1( v,v + sizeof( v ) / sizeof( v[0] ) );<br />

list l( v1.begin(), v1.end() );<br />

if( v1.size() == l.size() && equal( v1.begin(), v1.end(),<br />

l.begin() ) )<br />

cout

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!