fixed
Last edited on
In what line the error shows in?
Last edited on
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
The bug is in the Person constructor.
_name = name should be name = _name and same for age.
Last edited on
I fixed that but I'm still getting the null pointer error. Am I assigning my pointers right in this function "setDriver(Person *d)"?
I think you want driver = d and owner = o.
Yeah I actually tried that before and it didn't help. Thanks for helping by the way.