# generate a program

**URL:** <https://community.unix.com/t/generate-a-program/175104>\
**Category:** Programming\
**Created:** [August 31, 2007, 2:34am UTC](https://community.unix.com/t/generate-a-program/175104 "2007-08-31T02:34:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![namishtiwari](https://community.unix.com/letter_avatar/namishtiwari/32/6_22734026db12803ebb3e059622ac3534.png) [@namishtiwari](https://community.unix.com/u/namishtiwari)\
**Post date:** [August 31, 2007, 2:34am UTC](https://community.unix.com/t/generate-a-program/175104/1 "2007-08-31T02:34:20Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://community.unix.com/uploads/default/original/2X/c/c7e9e16a595259edafe88615719d5c5dcda035c2.png) [@system](https://community.unix.com/u/system)\
**Post date:** [August 31, 2007, 2:47am UTC](https://community.unix.com/t/generate-a-program/175104/2 "2007-08-31T02:47:41Z")

</div>

can you post your script please ?

---

<div class="post-metadata">

**Author:** ![namishtiwari](https://community.unix.com/letter_avatar/namishtiwari/32/6_22734026db12803ebb3e059622ac3534.png) [@namishtiwari](https://community.unix.com/u/namishtiwari)\
**Post date:** [August 31, 2007, 4:09am UTC](https://community.unix.com/t/generate-a-program/175104/3 "2007-08-31T04:09:09Z")

</div>

> [@kamitsin](#):
>
> 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
