Mod cpp.pad

Corrected bugs in declaration.
Fixed bugs in cpp.pad