final testing on c++ version

final testing on c++ version