30.03.2010, 20:07. Просмотров 423. Ответов 7
вот прога
C++ |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
| #include<iostream.h>
main()
{
int i;
struct str
{ char *fn;
int cl;
int sc;
};
str st[6];
for (i=0;i<3;i++)
{
cout<<"\n"<<"fam";
cin>>st[i].fn;
cout<<"\n"<<"clas";
cin>>st[i].cl;
cout<<"\n"<<"schol";
cin>>st[i].sc;
}
for (i=0;i<3;i++)
cout<<"\n"<<st[i];
} |
|
а вот ошибка:E2094 xxx.cpp:'operator <<' not implemented in type 'ostream' for arguments of type 'str' in function main()