12th Jun 2017, 8:23 AM
Bahubali
Bahubali - avatar
5 Answers
+ 2
I have correct that 1 but it still give error
12th Jun 2017, 9:35 AM
Bahubali
Bahubali - avatar
+ 2
I also don't know I run on my PC it give error ,not able to understand help
12th Jun 2017, 12:16 PM
Bahubali
Bahubali - avatar
+ 1
https://code.sololearn.com/cjw26711p5zS/#cpp I'm not sure if this is the output you wanted. But this one does not give any error. :) We cannot access private members directly, hence i used the display() function.
12th Jun 2017, 4:30 PM
Ashfiya Mumtaz Hassan
Ashfiya Mumtaz Hassan - avatar
0
Since settime is defined outside the class, you need to prefix it with the class name: void employee::settime(...
12th Jun 2017, 9:21 AM
Igor B
Igor B - avatar
0
Well, don't keep it a secret, tell us what the error is.
12th Jun 2017, 12:14 PM
Igor B
Igor B - avatar