All fixed, thanks.
Most of my problems were coming from an odd order of declaration thing (which I have yet to fix, but that's another problem).
If anyone has any idea...
Here
void...
Type: Posts; User: surlyTomato
All fixed, thanks.
Most of my problems were coming from an odd order of declaration thing (which I have yet to fix, but that's another problem).
If anyone has any idea...
Here
void...
If I comment the blah line out, it's fine. -- [edit: this part is fixed]
Also, I'm sorry, but I don't see what you mean by "you do not get a string free with every struct", since Data is filled by...
And, as an aside, if I do this
unsigned char *DataC;
int diggity;
//int *Xsz;
if(strcmp(methode,"plusproche")==0){
printf("refcam: %s, x: %d y: %d z:%d \n\n",refCam,x,y,z_d);...
The img.h file is also included in img.c
The file that calls LoadImage is like this now
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "fonctionsCommandes.h"
#include...
Now it says
error: ‘imginfo’ undeclared (first use in this function)
imginfo is declared in img.h and I have a #include img.h in the file with the main.
LoadImage (included in img.c), which is...
Hi,
I get the error above and I'm not sure why.
I have a file img.h (which I didn't write and have to use), in which I have
typedef struct{
int XSize, YSize;
int...
Hi,
and thanks.
That's what I was thinking too, but it seemed a bit un-elegant and repetitive. I was wondering if there was a way of "translating" the string "command1" into command1() directly,...
Hi all,
I have read the FAQ on running a program from within a program, but I don't think that that's my answer. From google, I only got C++ stuff.
I'd appreciate any input, or ideas on where to...
Ah crap, thanks. I'll say it was 3 a.m. and use that as my excuse.
I'm not sure how stupid of a question this is, but here goes:
My code is now this:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
That was it, thanks a lot.
Oh, and the second part was this:
for(i=0;i<sizeof(removedComments);i++){
//for(i=0;i<5;i++){
printf("^ removedComments \"%s\"\n", removedComments[i]);
word =...
Hi all,
I'm trying to read a file, remove the comments (lines starting with a #) and store the values. I haven't done any C in a while, so please bear with me.
I have read a bit from searching...