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....
...
Type: Posts; User: Lang
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....
...
Yes that's done exactly what I need.
Thanks muchly.
Hey,
Having some issues with a pointer to an array.
GEOMOBJ **geometricObjects;
numOfObjects = readTextFile(fileName, geometricObjects);
Thanks very much.
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...
Thanks for the help you two! I appreciate it.
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){
...
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"...
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
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
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...