tags:

views:

52

answers:

1

Hi All,

I need to create a larger file, which would be filled by strings and numbers of a certain length.

Eg File content would be like :

Dougan | 15 | Sapient
Patric | 25 | Patni.
IGHIGH | 10 | IHIUDWHKJDBHKJ

I need an outline as to how I can approach this in either c or c++..

Kindly let me know if more information is needed.

+1  A: 

http://stackoverflow.com/questions/440133/how-do-i-create-a-random-alpha-numeric-string-in-c

In this post, the accepted answer gives a function that you can easily adapt to have something that creates only strings without numbers, or just numbers. From there you should be able to do what you want (calling it three times per line with some pipes between).

MBennett