[an error occurred while processing this directive]
|
Пишу так:
typedef struct
{
float a;
float b;
float c;
}tip;
void f(tip &r)
{
r.a=r.b+r.c;
}
tip s;
void main (void)
{
f(s);
}
При попытке скомпилировать генерятся ошибки:
"main.c", line 8: [F001] syntax error at or near symbol '&'
"main.c", line 9: [E093] parameter name missing from 'f' prototype
"main.c", line 10: [F108] 'r' undefined
E-mail: info@telesys.ru