#include
#include
#include
#include
#include
#include
#include
using namespace std;
int main( )
{
ifstream stock_file( "data.txt" );
vector price( (istream_iterator( stock_file )),istream_iterator() );
vector percent_change( price.size() );
adjacent_difference( price.begin(), price.end(),percent_change.begin() );
copy( price.begin(), price.begin()+5,ostream_iterator( cout, " " ) );
}