cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Setters and Getters Questions
Setters and Getters Questions
Nov 30, 2012 at 6:43pm UTC
artiomso
(10)
bool
operator
<(
const
SubjectCode& c)
const
{(name) < (c.name);}
Last edited on
Nov 30, 2012 at 7:01pm UTC
Nov 30, 2012 at 6:56pm UTC
maeriden
(872)
If you're using a SubjecCode as input why not using just operator= ?
Nov 30, 2012 at 9:17pm UTC
toum
(353)
You forgot the
return
instruction.
Topic archived. No new replies allowed.