Search:

Type: Posts; User: blazer26

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,453

    parsing xml document

    done.
  2. Replies
    5
    Views
    982

    Yes you're right, its not really the EOF...

    Yes you're right, its not really the EOF character, but I was told to just generate a new character that will will have frequency of 1 and that will represent that the file is over. I wasn't sure how...
  3. Replies
    5
    Views
    982

    frequencyy list

    I wanted to start on a huffman program and the first thing is to read from stdin and generate a simple frequency list. I read that it's nice to generate an additional pseduo-EOF and give it frequency...
  4. Replies
    11
    Views
    1,801

    I thought it would terminate if it sees that...

    I thought it would terminate if it sees that character. What should be the second parameter of strch() ?


    [EDIT]

    strch searches for a specific character, I"m trying to read in the entire file...
  5. Replies
    11
    Views
    1,801

    Well I would like it to only terminate if it hits...

    Well I would like it to only terminate if it hits the EOF, else continue reading each character from stdin, even if they're spaces or n.l. and store them in a char array. In the previous post, dwks...
  6. Replies
    11
    Views
    1,801

    #include #include int...

    #include <string.h>
    #include <iostream>

    int main()
    {
    char s[256], *p;

    fgets(s, sizeof(s), stdin);
    if((p = strchr(s,'\0'))) *p = 0;
  7. Replies
    11
    Views
    1,801

    I have the following: #include ...

    I have the following:



    #include <iostream>
    #include <stdio.h>
    #include <ctype.h>

    using namespace std;
  8. Replies
    11
    Views
    1,801

    encoding scheme

    I'm trying to encode a file that is suppose to be read from stdin and a code file that has char value and it's corresponding binary encoding. I was wondering how would I read the data in and store it...
  9. Thread: huffman tree

    by blazer26
    Replies
    0
    Views
    1,794

    huffman tree

    Hello I have a simple list that contains the follwing frequency table:

    [file0]test 1,2,3.[file0]


    10 1
    32 1
    44 2
    46 1
    49 1
Results 1 to 9 of 9