generate a program

I have created a shell script but i wnt to translate that in c++ program as it is not working that fast.

1 strip=6 tickets
1 ticket has 27 values in that there should be exactly 15 values rest can be filled with zeroes.

1 strip has exactly 90 values.
in a column the entries should be in ascending order and not all entries in a column can be 0.

I am pasting one row for the reference.

00,00,20,33,00,00,63,70,80,06,12,00,34,42,56,00,00,00,00,00,29,00,00,59,69,74,86
04,13,00,32,43,00,65,00,00,00,18,22,00,00,55,00,72,84,09,00,00,38,47,00,67,00,89
01,11,21,00,00,51,00,76,00,00,00,26,30,45,54,00,00,82,00,19,00,00,46,00,61,77,83

There can not be a duplicacy of records.

Thanks
Namish

can you post your script please ?

The script is posted in a thred called good c++ program but that is a bit different task to do.Here somewhat req is different.

Thanks