TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: ANDREY DROZDOV
from: JAVIER KOHEN
date: 1997-12-17 00:40:00
subject: .

On 08-Dec-97, Andrey Drozdov wrote to All about Массив строк..
 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> ошибку: "Cannot convert 'char *' to 'mas_strok'
I understand NOTHING of what you have written, although I can recognize
some C between those "characters"...
You should be using strcpy(MAS_STROK[1].name, "aaaaaaaa.aaa"), or, as you
posted in the C++ echo, I could suggest to overload the assignment operator
for your struct or class... although I don't know if it will suit your OOP
approach.
Javier Kohen >jkohen@tough.com< [The_Crusher] http://jkohen.base.org
     +4:900/748.3+ _200:201/126_ ICQ:#3855350# PGPID:*3423EAA9*
.!. Hey Santa, how much for your list of naughty girls?
___ T-TAG 1.10 [*UnReg*]
--- Terminate 5.00/Pro 
---------------
* Origin: The King of The Ring (4:900/748.3)

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™.