Click here to Skip to main content
15,893,508 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: FindFirstChangeNotification() results in "The network BIOS command limit has been reached." Pin
Still learning how to code24-Jul-09 23:40
Still learning how to code24-Jul-09 23:40 
GeneralRe: FindFirstChangeNotification() results in "The network BIOS command limit has been reached." Pin
Frank Seidler24-Jul-09 23:06
Frank Seidler24-Jul-09 23:06 
GeneralRe: FindFirstChangeNotification() results in "The network BIOS command limit has been reached." Pin
Still learning how to code24-Jul-09 23:10
Still learning how to code24-Jul-09 23:10 
AnswerRe: FindFirstChangeNotification() results in "The network BIOS command limit has been reached." Pin
Rozis25-Jul-09 4:38
Rozis25-Jul-09 4:38 
QuestionGEtting Error when assigning struct array to an another array Pin
resolvequestion24-Jul-09 12:08
resolvequestion24-Jul-09 12:08 
AnswerRe: GEtting Error when assigning struct array to an another array Pin
Kelly Herald24-Jul-09 13:21
Kelly Herald24-Jul-09 13:21 
QuestionCounting items in a file with a C++ program Pin
Member 330122924-Jul-09 10:05
Member 330122924-Jul-09 10:05 
AnswerRe: Counting items in a file with a C++ program Pin
Rozis24-Jul-09 13:15
Rozis24-Jul-09 13:15 
ok you challence me, but your question is too generic: what is the distribution of the numbers? And tell me more about the numbers you want to count: what is their distribution over the numbers in the file?

If the distribution of numbers is random there's no knowledge you can take account in your algorithm. Then the solution is: read the file as quick as possible and build an internal array that holds the counts.

If you're looking for performance i would rewrite the file, because for each number you have to figure out what number it is. It would rewrite it to a binary file, each number in a 2-byte int, no line feeds. Saves space a make the program more quickly

Rozis
AnswerRe: Counting items in a file with a C++ program Pin
Joe Woodbury24-Jul-09 14:40
professionalJoe Woodbury24-Jul-09 14:40 
AnswerRe: Counting items in a file with a C++ program Pin
«_Superman_»24-Jul-09 17:37
professional«_Superman_»24-Jul-09 17:37 
QuestionC++ library to send mail via SMTP in HP UNIX Pin
ray_matt24-Jul-09 9:52
ray_matt24-Jul-09 9:52 
AnswerRe: C++ library to send mail via SMTP in HP UNIX Pin
Rozis24-Jul-09 13:19
Rozis24-Jul-09 13:19 
GeneralRe: C++ library to send mail via SMTP in HP UNIX Pin
ray_matt25-Jul-09 6:09
ray_matt25-Jul-09 6:09 
GeneralRe: C++ library to send mail via SMTP in HP UNIX [modified] Pin
ray_matt27-Jul-09 6:02
ray_matt27-Jul-09 6:02 
QuestionHow to enable "Prev Page" button in Print Preview dialog using MFC? Pin
gshen24-Jul-09 9:30
gshen24-Jul-09 9:30 
QuestionBest alternative to GDI/GDI+ for simple 2D games Pin
Adassus24-Jul-09 9:16
Adassus24-Jul-09 9:16 
AnswerRe: Best alternative to GDI/GDI+ for simple 2D games Pin
Randor 24-Jul-09 9:27
professional Randor 24-Jul-09 9:27 
AnswerRe: Best alternative to GDI/GDI+ for simple 2D games Pin
Moak25-Jul-09 3:34
Moak25-Jul-09 3:34 
QuestionHow to calculate checksum Pin
resolvequestion24-Jul-09 9:05
resolvequestion24-Jul-09 9:05 
AnswerRe: How to calculate checksum Pin
Emilio Garavaglia24-Jul-09 9:27
Emilio Garavaglia24-Jul-09 9:27 
AnswerRe: How to calculate checksum Pin
«_Superman_»24-Jul-09 17:47
professional«_Superman_»24-Jul-09 17:47 
QuestionSupport asked for virtualising a program in Vista using TokenVirtualizationEnabled using SetTokenInformation Pin
Kees195824-Jul-09 8:57
Kees195824-Jul-09 8:57 
QuestionDSA algorithm Pin
sarroya24-Jul-09 7:38
sarroya24-Jul-09 7:38 
QuestionHow to store array in vector in C++ Pin
resolvequestion24-Jul-09 7:30
resolvequestion24-Jul-09 7:30 
AnswerRe: How to pass array inside Vector in C++ Pin
transoft24-Jul-09 7:57
transoft24-Jul-09 7:57 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.