Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by filip ( 15 years ago )
istream &operator; >> (istream & Wej, macierz& m)
{
char znak;
TYP a;
int i=0;
int j=0;
znak=cin.get();
if(znak=='|') {
while(i<4) {
while (j<4) {
znak=cin.get();
if((znak != ',') && (znak != ' ')) {
cin.unget();
Wej >> a;
m._TabMacierz[i][j] = a;
j++;
}
}
j=0;
i++;
}
}
return Wej;
}//End function
ostream &operator; << (ostream & Wyj,macierz& m)
{
int i,j;
for(i=0;i<4;i++)
{
Wyj << '|';
for(j=0;j<4;j++)
{
Wyj << ' ';
Wyj << m._TabMacierz[i][j];
}
Wyj << ' ' << '|' << '\n';
}
return Wyj;
}
Revise this Paste
Children: 31957