Search:

Type: Posts; User: LiLgirL

Search: Search took 0.00 seconds.

  1. Replies
    3
    Views
    1,558

    I am not sure I follow...maybe my question wasn't...

    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...
  2. Replies
    3
    Views
    1,558

    pointers to strings

    Hi,

    I have a function like this:


    void addidfword(char *word, char *dname, IDFWORDS *C) {
    IDFWORDS *new;
    IDFWORDS *ptr;

    new=(IDFWORDS *)malloc(sizeof(IDFWORDS));
  3. Replies
    3
    Views
    1,179

    thanks for the reply. what's the best to way to...

    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...
  4. Replies
    3
    Views
    1,179

    text categorization

    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...
  5. Replies
    10
    Views
    3,326

    I finally got it to work by using a win32 console...

    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!
  6. Replies
    10
    Views
    3,326

    Ok, I made a new project with just your main fn,...

    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?

    :(
  7. Replies
    10
    Views
    3,326

    yea...i know how to print it and view the...

    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. :(
  8. Replies
    10
    Views
    3,326

    well basically, i am trying to fill in a 2d...

    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?
  9. Replies
    10
    Views
    3,326

    2d array problem with vc++

    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';...
  10. Replies
    1
    Views
    2,059

    2d array problem

    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';...
  11. Replies
    7
    Views
    2,595

    global pointer problem?

    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;
  12. Replies
    4
    Views
    1,234

    Thanks for the ideas. The problem was here:...

    Thanks for the ideas.

    The problem was here:



    {ws} {// Do Nothing}
    {comment} {// Do Nothing}
  13. Replies
    4
    Views
    1,234

    problem with lex?

    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:


    %{
  14. Replies
    2
    Views
    1,407

    ungetc question

    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...
  15. Replies
    1
    Views
    1,058

    help with makefile

    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...
Results 1 to 15 of 15