c++ spikes