Search:

Type: Posts; User: bolivartech

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    2,159

    I don't think we have studied typedef. If we have...

    I don't think we have studied typedef. If we have I must have missed it...
  2. Replies
    9
    Views
    2,159

    I may have figured it out thinking back you what...

    I may have figured it out thinking back you what you said about my function call

    (*(**current).left_child).node_height that looks horrible but it seems to work. I derefernce current twice, get the...
  3. Replies
    9
    Views
    2,159

    Alright that makes sense. This was my first time...

    Alright that makes sense. This was my first time using a struct for the return type and I wasn't sure how to declare it correctly. I knew I wasn't wanting to return anything but a pointer to the...
  4. Replies
    9
    Views
    2,159

    Will do! I'll do it above so the thread doesn't...

    Will do! I'll do it above so the thread doesn't get too long.

    The red is the incompatible types in assignment.

    The DarkOrange is the request for member in something not a structure or union
    ...
  5. Replies
    9
    Views
    2,159

    I hate pointers or Pointer Issues

    6 programs in and I still am having issues with pointers. I'll attach the code I have below. Suffice to say I am having issues with pointers. I'm using CodeBlocks IDE. In line 9 of my...
  6. Replies
    3
    Views
    1,076

    This is almost complete, but for some reason it...

    This is almost complete, but for some reason it is not updating the unchanged rows to visited if the values in the cost column do not change. Any ideas?




    #include <stdio.h>
    #include...
  7. Replies
    3
    Views
    1,076

    Well I downloaded codeblocks and found a couple...

    Well I downloaded codeblocks and found a couple errors, but now I'm having trouble freeing the memory allocated to my two arrays. I added a couple loops near the end but that doesn't seem to fix it....
  8. Replies
    3
    Views
    1,076

    Infinite Loop

    I think that is my problem but I cannot seem to find it. The program is to take a file in that contains a cost matrix, and print out a table for the shortest path. I used a second array to store the...
  9. Ok this is going well. It appears to be running...

    Ok this is going well. It appears to be running like it should but it's not printing what I expect it too. Here is both the main and the print functions. I'm going to look into my pointers, I'm...
  10. yeah I figured that out just before looking at...

    yeah I figured that out just before looking at this again. they should be size*size.

    And I think fscanf(infile, "%d", matrix[i]); should be fscanf(infile, "%d", &matrix[i]);

    is that right?
  11. Segmentation fault reading integers into an array

    Well I was just about to give up on this as I was having difficulty debugging it but S and s are not the same ;-). The title basically states what I'm trying to do. The issue is in the first while...
  12. Replies
    13
    Views
    2,707

    By the way something I did to get it to compile...

    By the way something I did to get it to compile was change the free(*temp).num; line to include the &. with out it I get:

    remnode.c: In function āremnodeā:
    remnode.c:28: warning: passing argument...
  13. Replies
    13
    Views
    2,707

    Well the printf to check my program has worked...

    Well the printf to check my program has worked out well. I was moving right along finding my errors when it through this at me after another compile. I need to make some changes to my input file to...
  14. Replies
    13
    Views
    2,707

    Basically put in a print to see where the program...

    Basically put in a print to see where the program get hung up at?
  15. Replies
    13
    Views
    2,707

    Thanks for the assistance, I included the header...

    Thanks for the assistance, I included the header file into my other .c files and compiled it as gcc *.c This let me clear up the rest of my errors. I have a segmentation fault now, but I think I can...
  16. Replies
    13
    Views
    2,707

    I completely understand what you are saying. I...

    I completely understand what you are saying. I guess I didn't quite get my function prototypes right. I had to correct those errors before in my original program, and I figured it out on my own then,...
  17. Replies
    13
    Views
    2,707

    Passing Arguments

    I am working on a linked list using separate files. I have a working linked list where all my functions are in one file but when I try to compile using separate files I have issues. I don't...
Results 1 to 17 of 17