Zur Übersicht - INFO - Neueste 50 Beiträge - Neuer Beitrag - Suchen - FAQ - Zum CC1-Forum - Zum CC-Pro-Forum

combined data types Kategorie: Programmierung (von Bart Jansen - 10.03.2005 11:26)
Ich nutze:
C164CI-ControllerBoard, original OS
Hi forum,

I'm a brand new user of the CControl II unit.  
Unfortunately I do not speek or write German, although I understand it.

First of all, does anybody know a forum which is in English?

Secondly, I'm trying the following code, which results in a type mismatch error on the last line.
Do I understand correctly that the only solution to assign a compound data type to an index in an array is
copying of all the data (bitems[0].x = r.x; bitems[0].y = r.y;)?

Thanks a lot for your help

type Bitem
{
int x;
int y;
}

function boo()
{
 Bitem bitems[10];
 Bitem r;
 r.x = 5;
 r.y = 7;
 bitems[0]= r;
}


    Antwort schreiben


Antworten:

Re: combined data types (von André H. - 15.05.2005 21:54)