Search:

Type: Posts; User: skeptik

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,180

    perfect! :) thanks salem. i thought i had...

    perfect! :)

    thanks salem. i thought i had tried (c - 1) in the for loop. well, works now.
  2. Replies
    3
    Views
    1,180

    structure woes equals undesired output

    okay... i'm having a little trouble with the output i'm receiving. in the "context" column (read comment header below) at the end of each line are some control characters (ASCII values 01, 02, and...
  3. Replies
    22
    Views
    3,906

    okay... using fread() has really made an...

    okay... using fread() has really made an improvement over the final fgetc() method. a 60MB file now takes only 30 seconds instead of 90. not bad. thanks Thantos... and everyone else.
  4. Replies
    22
    Views
    3,906

    Thantos: okay... but my C skills are a little...

    Thantos:

    okay... but my C skills are a little rusty. i am not getting your code to work. sure, it compiles, but seg faults on the fread().

    here's my current code, and the fread() is working,...
  5. Replies
    22
    Views
    3,906

    1 second gain :)

    1 second gain :)
  6. Replies
    22
    Views
    3,906

    if just counting frequency... i got it down to...

    if just counting frequency... i got it down to just this!!!



    while ((c = fgetc(input_file)) != EOF ) {
    symbol[c].count++;
    }
  7. Replies
    22
    Views
    3,906

    oops. while ( (c = fgetc(input_file)) !=...

    oops.



    while ( (c = fgetc(input_file)) != EOF ) {
    symbol[c].position = symbol[c].position + nc;
    if (symbol[c].count++ > 0) {
    continue;
    }
    nc++;
  8. Replies
    22
    Views
    3,906

    i was omitting what "nc" was for... ...

    i was omitting what "nc" was for...


    .position = symbol[i].position + nc; /* this is what the nc is for */
    if (symbol[c].count++ > 0) {
    continue;
    }
    nc++;
    }
  9. Replies
    22
    Views
    3,906

    whoa! good stuff... :)

    whoa! good stuff... :)
  10. Replies
    22
    Views
    3,906

    okay... overnight i looked at the loop, and came...

    okay... overnight i looked at the loop, and came up with this. running it with the old code on a 65MB file took 10 mintues (on a 233Mhz Cyrix).

    now, on the same machine i get 1.5 minutes with...
  11. Replies
    22
    Views
    3,906

    nope... no performance improvement from that....

    nope... no performance improvement from that. anything else? maybe hash tables, linked lists?
  12. Replies
    22
    Views
    3,906

    optimizing loop (frequency counting)... HELP

    okay. i am trying to make this loop run as quick as possible.

    i am trying to collect all occurances of each ASCII character and put into table. i don't really care if ASCII char value equals it's...
  13. Replies
    1
    Views
    899

    timecard calculator problem...

    Okay... pretty simple, but i just wanted verification, does this look right?

    I'll be implementing this into a command-line based app, otherwise I'd use some spreadsheet or something.



    Data
    ...
  14. Replies
    14
    Views
    2,717

    thanks for the confirmation kermi

    thanks for the confirmation kermi
  15. Replies
    14
    Views
    2,717

    now i've confused myself. ;)

    now i've confused myself. ;)
  16. Replies
    14
    Views
    2,717

    okay... i am limited to the 88 keys for the total...

    okay... i am limited to the 88 keys for the total sequence... and the key can be used more than once as long as the squence is different...

    lets say i started bottom scale, then went to the top......
  17. Replies
    14
    Views
    2,717

    lets say both... 1 key at a time, and all the...

    lets say both...

    1 key at a time, and all the possible sequences

    and also 88 keys at a time..
  18. Replies
    14
    Views
    2,717

    need help with simple math prob...

    okay.... i just need a quick explanation on what a number like this would translate to:

    1.3e+171


    that's what i got when i did 88^88
    and what i am looking for is all possible combinations on...
  19. Replies
    8
    Views
    1,867

    i would recommend you read up on the mp3 codec...

    i would recommend you read up on the mp3 codec and see where you can store your information without corrupting the file

    check

    http://mp3-converter.com/mp3codec/
  20. Replies
    1
    Views
    1,361

    a great little code snippet...

    i've been wondering how i could allow only a single instance of an application... here it is.



    /* szClassName = Window Class Name */

    if(CreateMutex(NULL, FALSE, szClassName) &&...
  21. Replies
    8
    Views
    1,867

    check out the Media Control Interface (MCI) on...

    check out the Media Control Interface (MCI) on msdn

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/mciwnd_75wz.asp

    i am working on my first windows app... its a mp3...
  22. Replies
    2
    Views
    3,297

    child window resizing problem

    How can I get hwndChild1's height to auto-resize to the current window dimensions?



    ...

    RECT rect;
    int height;

    switch(message) {
  23. Thread: The Basics

    by skeptik
    Replies
    5
    Views
    2,091

    i don't really like Petzold's book... I...

    i don't really like Petzold's book...

    I recommend Win32 Programming by Brent Rector & Joseph Newcomer

    http://www.amazon.com/exec/obidos/ASIN/0201634929/ref%3Dpd%5Fsim%5Fbooks/002-6835612-1261649
  24. Replies
    3
    Views
    979

    the above zipfile works now... fixed it. :)

    the above zipfile works now... fixed it. :)
  25. Replies
    3
    Views
    979

    newbee trouble...

    i got the splitter window working... but its in a horizontal position, i need vertical. there's a resizing problem too that effects my statusbar.

    i am new to windows programming. don't flame me....
Results 1 to 25 of 37
Page 1 of 2 1 2