Search:

Type: Posts; User: dbyte

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,812

    Salem, Is there any way of putting your linked...

    Salem,
    Is there any way of putting your linked list code directly in main()? Either that or making it a function that gets called directly from main()? I see the list append function (which is the...
  2. Replies
    7
    Views
    1,812

    Zainny, Your code works fine, but is this part...

    Zainny,
    Your code works fine, but is this part the linked list?


    for (i = 0; i < 5; i++) {
    if (i == 4) {
    employees[i]->next = NULL;
    } else {
    ...
  3. Replies
    7
    Views
    1,812

    Linked list not resetting between functions

    Here is my code:


    #include <stdio.h>
    #include <stdlib.h>

    /*Structure declaration*/
    struct employee
    {
    char name[20];
  4. Thread: Second program

    by dbyte
    Replies
    35
    Views
    3,190

    Okay, finally got the (altered) code working: ...

    Okay, finally got the (altered) code working:


    #include <stdio.h>
    #include <string.h>

    void subb()
    {
    int r;
    int t;
  5. Thread: Second program

    by dbyte
    Replies
    35
    Views
    3,190

    Elite, Below your # include statements you...

    Elite,
    Below your # include statements you initialize the function as "sub", but everywhere else in your code it's referred to as "subb". I'm not sure if this is the reason for your specific error...
  6. Replies
    5
    Views
    6,401

    Salem, You rule! Thanks for you help. More...

    Salem,
    You rule!

    Thanks for you help. More importantly, thanks for your clear explanations. I like it a lot better when I can learn why things are done instead of merely knowing that they are...
  7. Replies
    5
    Views
    6,401

    Blackrat, Okay, I removed the loop from main(). ...

    Blackrat,
    Okay, I removed the loop from main(). Code still compiles fine but crashes during running, @ the same point as before. Here is my updated code for main:


    int main ()
    {
    ...
  8. Replies
    5
    Views
    6,401

    LP, Thanks for your quick reply. I'm using the...

    LP,
    Thanks for your quick reply. I'm using the Dev-C++ 4.9.8.0 IDE on a Windows XP laptop. I have used the system("pause") bit in all of my previous code without it causing any problems. Maybe it...
  9. Replies
    5
    Views
    6,401

    Code compiles but doesn't run

    Here is my code:


    #include <stdio.h>

    /*Structure declaration*/
    struct employee
    {
    long id_number;
    float wage;
  10. Thread: Function help

    by dbyte
    Replies
    6
    Views
    1,244

    Got it - thanks for the clarification.

    Got it - thanks for the clarification.
  11. Thread: Function help

    by dbyte
    Replies
    6
    Views
    1,244

    Money?, Thanks for your help. I made the...

    Money?,
    Thanks for your help. I made the changes you indicated & everything works as it should. A question though: why is the transpose function supposed to be set to void? Isn't it returning the...
  12. Thread: Function help

    by dbyte
    Replies
    6
    Views
    1,244

    The first row & column are zero-filled to prevent...

    The first row & column are zero-filled to prevent me from having to include "- 1" in every instance of the array loops. Hence the larger arrays for a smaller set of values. Probably not the...
  13. Thread: Function help

    by dbyte
    Replies
    6
    Views
    1,244

    Function help

    Here is my code:


    #include <stdio.h>
    #define count 6

    int transpose (int row[], int column[], int number[][6])
    {
    number[row[count]][column[count]] = number[column[count]][row[count]];
  14. Replies
    2
    Views
    1,299

    Salem & Draco, Thanks for helping out yet...

    Salem & Draco,
    Thanks for helping out yet another newB guys. I made the settings changes and removed the '&' - VOILA! I actually have working code!!:D

    I'll be back here asking questions again...
  15. Replies
    2
    Views
    1,299

    Problem with code or Dev-C++ IDE???

    Here is my code:


    #include <stdio.h>

    main ()
    {
    char letter;

    printf ("Enter a letter: ");
Results 1 to 15 of 15