C
C#15mo ago
HLA

❔ Help with building library application

I have a class project where im building a library. I am not good at this at all. I've used chatgpt to get the code i have but there are some parts i dont understand nor does it work. Please I need to graduate!
8 Replies
HLA
HLA15mo ago
library.books isnt working and i dont know why
HimmDawg
HimmDawg15mo ago
You can hover over library.Books with your mouse to see, what's wrong Sidenote: Don't use ChatGPT if you don't understand the code that it is producing. It's a language model and therefore the answers it produces are just probably right owo
Xan.Nava
Xan.Nava15mo ago
It has been about 2/5 times right for me, often I have to tell it what it did wrong and then it will fix it. But yes +1 to needing to know how to code actually. Do you have the repo up on github or anything for people to look it over with you? Or is your teacher just having you zip the project for them(I never understood why teachers did this in college).
Tvde1
Tvde115mo ago
what is the error?
boiled goose
boiled goose15mo ago
if library has SearchBook then it shouldn't have direct access to Books, and in fact it doesn't we can see that currentUser has Books, but maybe it's not that the right one
HimmDawg
HimmDawg15mo ago
Looks like chatgpt forgot about the method it created a couple of milliseconds ago fluffyFoxMhm
Buddy
Buddy15mo ago
Isn't the point that you should write your own linear search algorithm?
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.