TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ANDREY DROZDOV
from: ADAM MAJER
date: 1997-12-11 17:35:00
subject: .(??? What?)

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.