RosettaCodeData/Task/CRC-32/C++/crc-32-2.cpp

14 lines
316 B
C++
Raw Permalink Normal View History

2013-10-27 22:24:23 +00:00
#include <boost\crc.hpp>
#include <string>
#include <iostream>
int main()
{
std::string str( "The quick brown fox jumps over the lazy dog" );
boost::crc_32_type crc;
crc.process_bytes( str.data(), str.size() );
std::cout << "Checksum: " << std::hex << crc.checksum() << std::endl;
return 0;
}