I got that fixed, the walked help to say the least. Thanks btw :D
(Yeah the fgets I looked up and it said it returned NULL. Though ssharish2005 said to use != EOF so thats half the reason I...
Type: Posts; User: Volair
I got that fixed, the walked help to say the least. Thanks btw :D
(Yeah the fgets I looked up and it said it returned NULL. Though ssharish2005 said to use != EOF so thats half the reason I...
>< Programming lords shoot me now.
Thanks Dave. I'll try not to be an idiot anymore, but I can't promise that o o
Sorry ^ ^; I forgot those important details o o;
dataList is:
char dataList [5][MAX];
passed as:
fp = getData ( dataList, fp, &linesR);
recieved as:
FILE *getData ( char...
I keep getting the 'arithmetic on pointer to an incomplete type' on all of the following:
strcpy ( dataList[i], buffer2 );
lineLen = strlen(buffer2);
for ( j=0; j < lineLen...
I am really starting to freak out...
What am I doing wrong. I'll be back, need to take a walk. This is the thrid time I have rebuilt my adding to tree functions
...
How about this? Or should I do it all in main? (Im trying to make functions that I can use later, but I guess I am not doing that to well ^ ^; )
#include "lab05.h"
int buildTree ( struct...
Hmmmm, well I might as well give it a shot! Thanks!
How would I do something like that :S ? Like have a function write to 2D arrary from the file, then send the 2D array to a function that adds the lines to the tree?
Btw, I can send you a copy of my entire program zipped and with the make file if you need.
I really hate to ask this, but I just can't stand this program any more. I have been working on it about 4-8 hours a day for last two or three days. And haven't made much progress. I am about to...
Ah I see. >< Gah, when did I take that out?!
Thanks :D
I, for whatever reason, get a seg fault when ever I do
soil->root = NULL
I also find that when I try the following I get a seg fault as well.
soil -> root = (struct entry *) malloc...
OK I have it now where it will exit, but even when a "peg" is in the correct spot, a white peg is still added (white peg being that that you guessed a right color in the wrong spot). I checked it...
Alright I figured out my first problem, so now I can't figure out why I can't exit the 'checkGuess' function with out it adding as many "white pegs" as it pleases. Any ideas?
...
I finished a project and a got a 48/50 on it :D but the points I lost where due to it being one day late and not making a header file. So now I am going back and trying to make a header file (for...
Has anyone else had a problem where the scanf would just keep prompting? This is odd... really odd.
Alright cool, I'll see if that works : ) Thank you very much.
Alright, here it is.
#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#include<string.h>
void menu(int *option);
When I complie my program I get this error:
lab05.c:183: arithmetic on pointer to an incomplete type
Line 183 is this:
word[i]=list[x][i];
I also get it for a few other line similar. I...