S
sd2004
Could someone please help ?
I am getting compiling error but do not understand why ?
below is snipset of code:
istream& operator>>(istream& is, test_ins& s){
is >>s.pass>>s.put>>s.type; //line 22
is >>s.test_one>>s.test_two>>s.test_three; /line 23
is >>s.test_four >>s.test_five>>s.test_six; //line 24
is>>s.force>>s.weight;
is>>s.label>>s.start>>s.stop;
is>>s.min>>s.max>>s.clamp;
is>>s.time>>s.desc;
return is;
}
test.cpp:22: error: syntax error before `.' token
test.cpp:23: error: syntax error before `.' token
test.cpp:24: error: syntax error before `.' token
test.cpp:25: error: syntax error before `.' token
test.cpp:26: error: syntax error before `.' token
test.cpp:27: error: syntax error before `.' token
test.cpp:28: error: syntax error before `.' token
I am getting compiling error but do not understand why ?
below is snipset of code:
istream& operator>>(istream& is, test_ins& s){
is >>s.pass>>s.put>>s.type; //line 22
is >>s.test_one>>s.test_two>>s.test_three; /line 23
is >>s.test_four >>s.test_five>>s.test_six; //line 24
is>>s.force>>s.weight;
is>>s.label>>s.start>>s.stop;
is>>s.min>>s.max>>s.clamp;
is>>s.time>>s.desc;
return is;
}
test.cpp:22: error: syntax error before `.' token
test.cpp:23: error: syntax error before `.' token
test.cpp:24: error: syntax error before `.' token
test.cpp:25: error: syntax error before `.' token
test.cpp:26: error: syntax error before `.' token
test.cpp:27: error: syntax error before `.' token
test.cpp:28: error: syntax error before `.' token