Search Results

Showing results 1 to 22 of 22
Search took 0.03 seconds.
Search: Posts Made By: Barefootsanders ; Forum: C and child forums
Forum: C Oct 25th, 2008
Replies: 5
Views: 620
Posted By Barefootsanders
oo wow thanks a bunch. I've been working w/ matlab for to long and it starts with 1 rather than 0 when addressing an array.

Thanks again!
Forum: C Oct 25th, 2008
Replies: 5
Views: 620
Posted By Barefootsanders
Hey all,

I'm trying to use a 3 element array and keep it sorted. So when i get a new value that should be put at the start of the array, I shift values down in the array like this:

array[2] =...
Forum: C Jan 8th, 2008
Replies: 2
Views: 834
Posted By Barefootsanders
I'm pretty sure its getting stuck in one of the while loops for some reason but I cant tell why. Any help?
Forum: C Jan 8th, 2008
Replies: 2
Views: 834
Posted By Barefootsanders
Hey everyone,

I'm attempting to write a program that will pipe and fork to have a parent and child process. Then the parent writes numbers to the pipe and the child either multiplies or divides...
Forum: C Dec 17th, 2007
Replies: 4
Views: 737
Posted By Barefootsanders
Edit: well looks like you fixed it. No need for my reply :)
Forum: C Dec 8th, 2007
Replies: 2
Views: 1,824
Posted By Barefootsanders
Thanks a lot. That solved it right up. Thought I could get away without including it and just declaring it as an extern but I guess theres no way around it. Thanks again.
Forum: C Dec 8th, 2007
Replies: 2
Views: 1,824
Posted By Barefootsanders
Hey everyone,

I'm attempting to write a header file, example.h that will contain function declarations that will be defined in example.c. For some reason Its giving me an error when i do this
...
Forum: C Dec 2nd, 2007
Replies: 4
Views: 898
Posted By Barefootsanders
Forum: C Dec 2nd, 2007
Replies: 4
Views: 898
Posted By Barefootsanders
Hey everyone,

I was wondering if someone could explain to me the following bit of code. I understand != in logic but i dont know how to read it like this:


float y = 0.01, x = 0.005, z;

z...
Forum: C Nov 29th, 2007
Replies: 3
Views: 1,334
Posted By Barefootsanders
Hey sorry. You were right and I was implementing it incorrectly. I was passing a NULL pointer to my print function and it crashed. Thanks for the input.
Forum: C Nov 28th, 2007
Replies: 3
Views: 1,334
Posted By Barefootsanders
Also, btw, when I change the number of elements in the list and attempt to print that it works.. strange.
Forum: C Nov 28th, 2007
Replies: 3
Views: 1,334
Posted By Barefootsanders
I have a doubly linked list and I know it gets created with the proper values. For some reason when I run through my print function it, only prints 1/2 of the list and then gives me this:

the...
Forum: C Nov 28th, 2007
Replies: 10
Views: 1,820
Posted By Barefootsanders
Hey everyone,

Thanks for all the help!

-Barefoot
Forum: C Nov 27th, 2007
Replies: 10
Views: 1,820
Posted By Barefootsanders
Wow, thanks for the quick response. It solved my problem. However, something else is not working. Below is just a small segment of the code i was working on. It gets passed an empty listOfLists...
Forum: C Nov 27th, 2007
Replies: 10
Views: 1,820
Posted By Barefootsanders
Ahh, thank you. I completely forgot about "malloc". I use it with the other list but it just slipped my mind. Now, since the listOfLists will have 3 datatypes, the pointer to the next, the head...
Forum: C Nov 27th, 2007
Replies: 10
Views: 1,820
Posted By Barefootsanders
Hmm, it just might be NULL there. Further debugging made me find out that as soon as I declare it I cant even access it. I attempted this in main and it crashed:


listHolder *listHolderPtr;...
Forum: C Nov 27th, 2007
Replies: 10
Views: 1,820
Posted By Barefootsanders
Hey everyone,

I'm attempting to write a program that will contain multiple C-DLLs. I currently have 2 structs:


struct CDLL_Node {
char value[30];
struct CDLL_Node *next;
struct...
Forum: C Nov 15th, 2007
Replies: 7
Views: 2,649
Posted By Barefootsanders
sorry, I should have said I changed it to this,


char *getString(char *string) {
scanf("%199s",string);
return string;
}

to provide for the null char. Thanks again:)
Forum: C Nov 15th, 2007
Replies: 7
Views: 2,649
Posted By Barefootsanders
Ahh, thanks. Worked like a charm. Exactly what I needed.
Forum: C Nov 15th, 2007
Replies: 7
Views: 2,649
Posted By Barefootsanders
Hey everyone,

I'm working on function that will take in a char array, prompt the user to input a string, and then return that string to the function. Below is what I've been working on and yes, I...
Forum: C Oct 28th, 2007
Replies: 4
Views: 3,151
Posted By Barefootsanders
That would explain it... thanks a lot. So my only option is to compile things through linux then right?
Forum: C Oct 28th, 2007
Replies: 4
Views: 3,151
Posted By Barefootsanders
Hey everyone,

I'm using Dev-C++ to compile the following program. It's simple but for some reason its not working.


#include <stdio.h>
#include <unistd.h>

int main()
{
Showing results 1 to 22 of 22

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC