Search:

Type: Posts; User: Lang

Search: Search took 0.01 seconds.

  1. Replies
    8
    Views
    2,289

    Turning Byte into Binary

    Hey guys,

    I'm having trouble. I have a byte, and I need to turn it into binary. I know how to mask each individual bit but I don't know how to get that bit. This is what I have so far....
    ...
  2. Replies
    4
    Views
    3,339

    Yes that's done exactly what I need. Thanks...

    Yes that's done exactly what I need.

    Thanks muchly.
  3. Replies
    4
    Views
    3,339

    Segmentation fault (pointer to an array)

    Hey,

    Having some issues with a pointer to an array.



    GEOMOBJ **geometricObjects;
    numOfObjects = readTextFile(fileName, geometricObjects);
  4. Replies
    2
    Views
    1,097

    Thanks very much.

    Thanks very much.
  5. Replies
    2
    Views
    1,097

    Unions : invalid types

    Getting this error:
    error: field ‘circle’ has incomplete type

    I get this error for all the shapes in my union; the code is as follows:


    typedef struct circle {
    /* add the missing...
  6. Replies
    8
    Views
    1,748

    Thanks for the help you two! I appreciate it.

    Thanks for the help you two! I appreciate it.
  7. Replies
    8
    Views
    1,748

    Command Line Arguments

    Getting segmentation fault errors and I can't figure out why.

    All I'm currently doing is asking for a command line argument and trying to print the data.



    int main(char *fileName){
    ...
  8. Replies
    4
    Views
    2,850

    When I do what you describe, I get errors saying...

    When I do what you describe, I get errors saying that functions have been declared twice.

    When I do this to main.c



    #include "linked_list.h"
    #include "linked_list.c"
    #include "number.h"...
  9. Replies
    4
    Views
    2,850

    Makefile and includes

    My makefile:



    main : main.c linked_list.o number.o
    gcc -o main main.c linked_list.o number.o

    linked_list.o : linked_list.c
    gcc -c -o linked_list.o linked_list.c
  10. With malloc I need to know the size of my...

    With malloc I need to know the size of my LIST_HEAD - but I don't know what that size its going to be...


    *edit* REALLY DUMB QUESTION! My bad lol
  11. Request for member x in something not in a struct or union

    I've searched for the forums and found many solutions to this problem. While solving it with my program has proven to be very difficult, the ones I did fix just created more errors.

    What I'm doing...
Results 1 to 11 of 11