Yukonヌ
Yukonヌ
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
I decided to not have books removed, I added a method instead for IsRented: https://hatebin.com/fskenomquh
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
but if it goes outside of the loop i cant check the index? or am i wrong? you mean something like this, https://hatebin.com/bhadwluksr ?
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
Iv compared the rentBook if its equal to the book[i].Id, this is what you meant right? To compare so that the user input equals one of the ID's. I dont know why its so hard, but its confusing the hell out of me, since accessing the property in an object is something iv never done before. https://hatebin.com/uiwkztdcdh
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
https://hatebin.com/hksgpejcom not getting it to work at all now
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
I mean yea im just so confused with what to iterate exactly in the for loop
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
Iv tried googling cant seem to find any info, everyone gives linq as the option for this.
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
I see, not sure I fully understand how to implement this :/
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
exactly
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
so if i run the program now, and I input 1, I will remove the first book, new iteration shows books with ID 2-10, now I want to be able to press 2 to remove the first book of the updated list
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
its kinda hard to explain hope you understand
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
I want the book = Id to update with the element position after I remove a book, right now if I remove the first book, the book with Id 2 gets in first place so to remove it I have to press 1
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
i tried having Id = book.Count aswell but doesnt seem to help
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
Hi gotta quick question regarding list and count. Im working on building a library and being able to rent books, this is just a snippet of what im having a issue with right now. I want the book.Count to update when someone rents a book, so the books gets removed and the remaining books are orderd from 1 to book.Count, what am i doing wrong here?
257 replies
CC#
Created by Yukonヌ on 11/22/2024 in #help
I have a list of students and their grades that I want to sort based on grades
I managed to do it with numbers as grades, but I dont know how to do the algorithm to compare strings, as in F-A grades. https://hatebin.com/qjtkqhzcmw
12 replies
CC#
Created by Yukonヌ on 11/22/2024 in #help
I have a list of students and their grades that I want to sort based on grades
I see, iv only used bubble sort on unsorted arrays, not sure how to do it with a list, im very new at this mind you
12 replies
CC#
Created by Yukonヌ on 11/22/2024 in #help
I have a list of students and their grades that I want to sort based on grades
Its a small homework before our last assignment in web development, it says to use a sorting algorithm like bubble or selection sort, so il try and implement bubble sort, iv used it before but not sure how to go about it here. making sure all A+ comes first and F last and everything in between.
12 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
my next assignment is to make a library for books, where user and register/login and look for books and borrow them or add books, using search algorithms and methods. So il probably implement classes/methods here instead.
257 replies
CC#
Created by Yukonヌ on 11/18/2024 in #help
Get another writeline on second itteration
alright cool, what do you mean when you say handle my cases?
257 replies