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)
|