  In this paper, we propose a class of linear codes and obtain their weight
distribution. Some of these codes are almost optimal. Moreover, several classes
of constant composition codes(CCCs) are constructed as subcodes of linear
codes.
