Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for hamburgersarecoolâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #285573 |
Post edited: |
— | almost 3 years ago |
Comment | Post #285575 |
Yeah, it worked, thanks!! BTW the list currently only prints out the latest number I entered instead of the full linked list... How can I make it print the whole linked-list? Like instead of it printing out just one number... (more) |
— | almost 3 years ago |
Edit | Post #285573 |
Post edited: |
— | almost 3 years ago |
Comment | Post #285573 |
After I added the struct to become " struct Node* temp = (struct Node*)malloc(sizeof(struct Node)); " , the program ran. But after entering the amount of numbers I wanted as well as entering the first number, it printed out a loop of that "first number" I entered, infinitely. Why is it like that? (more) |
— | almost 3 years ago |
Edit | Post #285573 |
Post edited: |
— | almost 3 years ago |
Edit | Post #285573 | Initial revision | — | almost 3 years ago |
Question | — |
Question regarding an error message in my compiler to do with my code on linked list. Can anyone help me, I'm currently learning pointers, this is the code I wrote to try and insert a node at the beginning of the list. However at the part where I included the comment of "error at this line" basically my compiler gave me the error of "In function Insert: Node undeclared". Why is it so... (more) |
— | almost 3 years ago |
Edit | Post #285183 |
Post edited: |
— | about 3 years ago |
Edit | Post #285183 |
Post edited: |
— | about 3 years ago |
Edit | Post #285183 | Initial revision | — | about 3 years ago |
Question | — |
How can I delete a book from the collection by a particular title from my library file? I would like to delete a book from the collection by a particular title from my library if the user enters 2 as input for my switch statement. How can I do that with my current code? ```#include #include #define MAX 49 //void addBook(struct library thislib){ //} struct book{ char title... (more) |
— | about 3 years ago |
Comment | Post #285177 |
Why is:
int leftChild = 2 * i + 1;
int rightChild = 2 * i + 2;
?? (more) |
— | about 3 years ago |
Edit | Post #285177 | Initial revision | — | about 3 years ago |
Question | — |
Regarding the heap sort algorithm. I get the concept of the heap sort algorithm and its like first you have a heap(ordered binary tree) then we have the Max heap which has the highest element value in the array at the top of the tree. The parent nodes will be basically > than the child nodes. But I don't get the heapify sample code he... (more) |
— | about 3 years ago |
Comment | Post #285174 |
https://software.codidact.com/posts/285169/285175#answer-285175 How about in this case of creating a delete function? Would it be like " char delete(struct library *thislib); ", also how would I alter the the function to delete a particular book from the particular collection just by the user enteri... (more) |
— | about 3 years ago |
Edit | Post #285169 |
Post edited: |
— | about 3 years ago |
Edit | Post #285169 | Initial revision | — | about 3 years ago |
Question | — |
Data structure implementation with Linked lists. Could someone explain this part of the coding for data structures & linked list? I actually got this code from a textbook but no matter how I read the textbook, I still don't get the concept & what it means. Thanks :") ``` #include #include struct listNode{ char data; struct listNode ne... (more) |
— | about 3 years ago |
Edit | Post #285162 |
Post edited: |
— | about 3 years ago |
Edit | Post #285162 | Initial revision | — | about 3 years ago |
Question | — |
How can you modify your server code to make it accept any port numbers instead of just one which is the one you predefined? Is there any way where I can modify the original server code so that it accepts any port number instead of the predefined one (i.e., port number 8989)? Port number will be entered in the command line when testing the Server1.exe as follows: `start server 8989` (also the main function parameter... (more) |
— | about 3 years ago |