AD> ######, All.
AD>### # Borland C++ ####### ###### #####?
AD>#### ### ##### ####:
AD>typedef struct mas_strok
AD>{
AD> char name[13];
AD>} STR;
AD>STR MAS_STROK[100];
AD>H# ### ####### ######### MAS_STROK[1]='aaaaaaaa.aaa', ########## #######
AD>#####
AD>: "Cannot convert 'char *' to 'mas_strok'
I'm assuming that you are trying to fix this error (can't read the above
- English prefered :) Try sumething like this:
typedef struct mas_strok
{
char name[13];
}STR
STR *ARRAY = new mas_strok[100];
To move stuff into the array use strcpy.
strcpy(ARRAY[0].name,"loony.bin");
Or you can move a single char at a time
ARRAY[0].name[0] = 'l';
Hope that helps.
PS. Don't want to be rude or anything but next time please write in
english. Who carres if it's bad (Not many people understand russian -
lastname?) ;-)
--- FMail 0.92
# SLMR 2.1 # Back Up My Hard Drive? I Can't Find The Reverse Switch!
---------------
* Origin: The Programmer's Oasis on FIDONET! (1:348/203)
|