I need to make a program in c++, that allow the user of the program to
make and text (that will be automatically recorded to a file (text.txt) in
ASCII caracters.
The user, should also have the ability of add the name and some other
data to a struct that is something like a persons database.
Then, the program should add the name of the person to the begin of the
text (text.txt), and the file should be printed to everyone in the
structure/database with the persons name in the beginning!
Can you please help me doing this?
To create a struct is:
struct structure {
char name[40];
char address[40];
char phone[10];
} data[100];
But can you please help me: how can I make a "editor" in the program for
the user do the text, but with limits (ex: 20 lines and 30 colunes), and
copy it to a ASCII file?
I really need this, as son as possible! So, if someone here knows how to
do this, I would be very gratefully! ;-)
Be happy and live long!
--- FMail/Win32 1.22
(2:361/46)
---------------
* Origin: Files 'R' Us BBS * Esmoriz * 056-754530 * 22h/8h * 33.600
|