different codes from c++