#include <iostream>
#include <vector>
 
void fill( std::vector<float> &vec1, std::vector<float> &vec2 );
void show( const std::vector<float> &vec );
 
int main()
{
    std::vector<float> vec1;
    std::vector<float> vec2;
    fill( vec1, vec2 );
 
    show( vec1 );
    std::cout << "\n";
    show( vec2 );
 
    return 0;
}
 
void fill( std::vector<float> &vec1 , std::vector<float> &vec2 )
{
    vec1.push_back( -0.5f );
    vec1.push_back( 0.5f );
    vec1.push_back( 1.5f );
 
    vec2.push_back( 0.5f );
    vec2.push_back( 0.5f );
    vec2.push_back( 1.5f );
}
 
void show( const std::vector<float> &vec )
{
    for( unsigned int i = 0; i < vec.size(); ++i )
    {
        std::cout << vec[i] << "/n";
    }
}