|
Discussion: What is the best way to count all set bits in a LARGE unsigned char array(no memory limit)? For example, 0x03 has 2 bits sets. 0x04 has 1 bits set. 0x07 has 3 bits sets. Suppose we get a really big array, like unsigned char ucarray[1024*1024*1024]; then what is the best way to count the number of all set bits(no memory limit)? To discuss it here because it was an interview question, and I ... 1 Jan 2008 21:47
DMA programming Hi, I am trying to make a small utility which can zero fill a hard drive. I have done it with PIO mode but it takes a lot of time doing it. Now, I am trying to use UDMA mode of the hard drive, but I don't know where to start. I really appreciate if you can give me some guides on doing it. Thanks, Hon... 28 Dec 2007 21:59
Related array(s) Hello NG, I have some sets of data in a file, containing an int and a string per line. Obviously its a file, so on start all string(s), but I have to convert the first entry to int, because I need some mathematical operations with it. The amount of lines is variable same as the length of the string(s). Examp... 1 Jan 2008 08:31
High Speed IRQ Timer/Clock in C I found this excellent High Speed Timer (in Pascal). I compiled it (using Turbo Pascal 7 and it runs fine): http://www.sorucevap.com/bilisimteknolojisi/programcilik/pascal/ders.asp?207995 and same High Speed Timer here too: http://groups.google.com/group/comp.lang.pascal/browse_thread/thread/92e9398f16c10ba4/e67... 16 Jan 2008 06:33
Displaying more than one word? Hi there, Sorry if this question so simple but i hope i learn, when i use "char" or "string" object to display entered message, if the message is more than one word(a sentence), my app gets closed with no complain. For example: If i enter "hello", there's no problem, if i enter "hello group" program goes closed.... 29 Dec 2007 12:20
Borland C++ I'm looking for c++ code samples. I have been looking and seraching on google.com. Just haven't fount any code samples. ... 12 Jan 2008 21:34
Exchange Messages between applications I´ve found 100 pages on the web about the topic, but I don´t get it anyway I just want to figure out, how 2 applications can exchange messages in API plain For that purpose I have created 2 applications, both a simple window with white background and nothing else Of course this means I know the handles and ever... 28 Dec 2007 00:50
Help Me Please! Begginers ?'s I just got a "C++ for Dummies" book and it came with basic software, most noticeably a C++ compiler from Bloodshed called Dev-C++. I was going through the lessons and got through the first one no problem (that is making a consol pop up that say press any key to continue) I was quiet proud of myself. However the sec... 3 Jan 2008 19:20
Top/Again instruction? I'm trying to read a GREP program written in C for windows. This is written by Alan R. Feuer. Tried to find it on the web, but couldn't. In a function called patternMatch he uses the instructions Top: and Again: I haven't been coding long and have never run into this. Nor can I seem to find much informatio... 26 Dec 2007 20:56
Newbie Questions on If statement Hi, all, I know this is too simple...but can somebody tell me: any expression other than "0" is of boolean "true" type so: if (x) {} is equivalent to if(x != 0) (1. it has to be a "true" boolean within if bracket?) 2. if I want the expression to return false in the if bracket, I just need to write a sin... 26 Dec 2007 20:56 |