Try out same codes and designs in C++