No difference in there declaration. Just one of C's many faults.
Type: Posts; User: TonyG
No difference in there declaration. Just one of C's many faults.
Yes i did test it but getting a result and watching watchers doesn't necessarily explain the lines definition...
while ((x-1))
{
++counter;
x--;
}
can someone tell me what the condition is to exit the loop? Is it while x-1 not equal to 0?
Just so you know. I HATE C. Can't wait till i finish this semester.
I have written a function to return a unique id for my linked list. I have run it through the debugger and checked the watcher that the values that are returned are correct.
char*...
Ahh that would be if i was just sitting here waiting for a response. Between posts i have been searching the program and help files to try and find my solution. I didn't start this thread without...
Borland XE vers 15.0
If i had time to read the manual i would (honest).
Thats if i run it in a shell. What about if i hit the run button in borlands.
Yeh thats the code. What about the setup with Borlands?
I have two files. menu.dat and submenu.dat that i want to import into my program via main arg parameters how do i set up borlands to do this.
One line question.
Any chance that this could be caused by malloc at some point further in my code? Because that was the only thing i messed with before this happened.
Debugger hangs at the line of code - menuInput = fopen(menuFile, "r"); following the debugger line by line.
Runs when i do a 'Build and Run' but not with the Debugger.
Hi, im using CodeBlocks and have only changed code that follows on from this section. My program runs up to a importing all data and some outputs.
But if i run it in debug mode now. It crashes...
Just one of those things.. Kept banging my head for hrs working this out.
Actually I have change the plan for this process. And now i am trying to generate a string that will increment as above C0001, C0002, C0003... every time it does a loop.
This is the code i have at...
worked it out thanks.
Yeh thanks all. Was late and i was tired. Didn't even have fclose() in the code.
I agree. Was only pointing out. Not criticizing. Found another one. But if anyone looks on this later they can work that one out for themselves.
Having trouble reading an int from a string.
categoryID is always of the format of <char>'000++' i.e. C0001 C0002...
strncpy(temp, current->categoryID, ID_LEN);
sprintf(temp,...
What am i missing? This creates a file but does not write to it.
void foo (struct* current, char inputID) {
FILE *stdoutReport;
char *reportFile;
if (current != NULL) {
Thank you for this. Not only does it help. But it has given me an "A HA" moment.
I have a recursive function for printed out some information from a Linked list node.
void generateItemReport(ItemType* currentItem) {
char token[MAX_DESC_LEN + 1];
int n, count =...
Thank you for this it works a treat. One small error needed to add +1 to count when ever adding the value of n to cater for the space.
Yeh just worked it out. Thanks for the post though.
What alternative?