Sep 1, 2012 at 5:36pm
fixed
Last edited on Sep 1, 2012 at 6:50pm
Sep 1, 2012 at 5:41pm
In what line the error shows in?
Last edited on Sep 1, 2012 at 5:41pm
Sep 1, 2012 at 5:45pm
That's the thing. It doesn't... It's the first error I've seen like this.
Here's what happens when I compile. When I run the program is when it brings up that error but doesn't give me any line or anything.
1> All outputs are up-to-date.
1>Manifest:
1> All outputs are up-to-date.
1>LinkEmbedManifest:
1> All outputs are up-to-date.
1> myname_lab01.vcxproj -> C:\Users\ james\Desktop\bowden_lab01\Debug\bowden_lab01.exe
1>FinalizeBuildStatus:
1> Deleting file "Debug\james_lab01.unsuccessfulbuild".
1> Touching "Debug\james_lab01.lastbuildstate".
1>
1>Build succeeded.
1>
1>Time Elapsed 00:00:00.92
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Last edited on Sep 1, 2012 at 5:46pm
Sep 1, 2012 at 5:49pm
The bug is in the Person constructor.
_name = name should be name = _name and same for age.
Last edited on Sep 1, 2012 at 5:49pm
Sep 1, 2012 at 6:11pm
I fixed that but I'm still getting the null pointer error. Am I assigning my pointers right in this function "setDriver(Person *d)"?
Sep 1, 2012 at 6:14pm
I think you want driver = d and owner = o.
Sep 1, 2012 at 6:18pm
Yeah I actually tried that before and it didn't help. Thanks for helping by the way.