I am not sure I follow...maybe my question wasn't clear or maybe I am just not getting it.
Before this function is called, i malloc space for a string called word. i then pass the pointer to this...
Type: Posts; User: LiLgirL
I am not sure I follow...maybe my question wasn't clear or maybe I am just not getting it.
Before this function is called, i malloc space for a string called word. i then pass the pointer to this...
Hi,
I have a function like this:
void addidfword(char *word, char *dname, IDFWORDS *C) {
IDFWORDS *new;
IDFWORDS *ptr;
new=(IDFWORDS *)malloc(sizeof(IDFWORDS));
thanks for the reply. what's the best to way to go through each word in the file and compare it? also, would you be familiar as to how i could dynamically add new keywords to each category? for...
Hi,
I am trying to start the following project:
A system that can look through text documents and be able to classify the document into 1 of 5 categories, similar to a newspaper, which places...
I finally got it to work by using a win32 console project.
I've been using console application (.NET) and it didn't work there..
Thanks for the ideas, people!
Ok, I made a new project with just your main fn, jlou. It still gaves the same error in my watch window. I am using vc++.NET...maybe thats a problem?
:(
yea...i know how to print it and view the contents, but i want to know how to view the contents in the watch window of vc++.
doing array[0][0] wont do it. :(
well basically, i am trying to fill in a 2d array.
when i run the debugger i just want to be able to view its contents.
how do i do that?
Hi, I am new to Visual C++.
I have a 2d array in my function.
char array[MAX][MAX];
I then fill in the contents of the array, say, like this:
array[0][0]='a';
array[0][1]='b';...
Hi, I am new to Visual C++.
I have a 2d array in my function.
char array[MAX][MAX];
I then fill in the contents of the array, say, like this:
array[0][0]='a';
array[0][1]='b';...
I have a struct defined globally in global.h as follows:
typedef struct entry {
char *lexeme; // id name
struct entry *next; // pointer to next entry
} ENTRY;
Thanks for the ideas.
The problem was here:
{ws} {// Do Nothing}
{comment} {// Do Nothing}
Hi, I wrote a lex file, but when I try to compile it, I get this error:
l3.lex:64: parse error before `{'
I don't see any errors.
Here is my code:
%{
Can anyone tell me how to fix the code below so that the last char of my input file is not printed out twice? I know you might be wondering what I am doing..haha..but it is just the skeleton for a...
Here is my makefile:
i2p: lexer.o parser.o emitter.o symbol.o init.o error.o main.o
gcc -o convert lexer.o parser.o emitter.o symbol.o init.o
lexer.o: lexer.c global.h
gcc -c...