06.08.2013 Views

Laboratory Exercises, C++ Programming

Laboratory Exercises, C++ Programming

Laboratory Exercises, C++ Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Programming</strong> with the STL 31<br />

int main() {<br />

using namespace std;<br />

using namespace cpp_lab4;<br />

}<br />

// Define an empty bitset, set some bits, print the bitset<br />

Bitset bs;<br />

bs[3] = true;<br />

bs[0] = bs[3];<br />

copy(bs.begin(), bs.end(), ostream_iterator(cout));<br />

cout

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

Saved successfully!

Ooh no, something went wrong!