perfect! :)
thanks salem. i thought i had tried (c - 1) in the for loop. well, works now.
Type: Posts; User: skeptik
perfect! :)
thanks salem. i thought i had tried (c - 1) in the for loop. well, works now.
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...
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.
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,...
1 second gain :)
if just counting frequency... i got it down to just this!!!
while ((c = fgetc(input_file)) != EOF ) {
symbol[c].count++;
}
oops.
while ( (c = fgetc(input_file)) != EOF ) {
symbol[c].position = symbol[c].position + nc;
if (symbol[c].count++ > 0) {
continue;
}
nc++;
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++;
}
whoa! good stuff... :)
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...
nope... no performance improvement from that. anything else? maybe hash tables, linked lists?
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...
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
...
thanks for the confirmation kermi
now i've confused myself. ;)
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......
lets say both...
1 key at a time, and all the possible sequences
and also 88 keys at a time..
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...
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/
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) &&...
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...
How can I get hwndChild1's height to auto-resize to the current window dimensions?
...
RECT rect;
int height;
switch(message) {
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
the above zipfile works now... fixed it. :)
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....