adding null values to C++