Click here to Skip to main content
15,918,889 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: error coming in class derived from CListVeiw Pin
Rajkumar R21-Jun-07 19:58
Rajkumar R21-Jun-07 19:58 
GeneralRe: error coming in class derived from CListVeiw Pin
neha.agarwal2721-Jun-07 20:06
neha.agarwal2721-Jun-07 20:06 
GeneralRe: error coming in class derived from CListVeiw Pin
neha.agarwal2721-Jun-07 20:41
neha.agarwal2721-Jun-07 20:41 
AnswerRe: error coming in class derived from CListVeiw Pin
Rajkumar R21-Jun-07 22:33
Rajkumar R21-Jun-07 22:33 
QuestionHow to OR Arrays Without loop Pin
SandipG 21-Jun-07 18:40
SandipG 21-Jun-07 18:40 
AnswerRe: How to OR Arrays Without loop Pin
Cyrilix21-Jun-07 18:43
Cyrilix21-Jun-07 18:43 
GeneralRe: How to OR Arrays Without loop Pin
SandipG 21-Jun-07 18:48
SandipG 21-Jun-07 18:48 
GeneralRe: How to OR Arrays Without loop Pin
Cyrilix21-Jun-07 20:05
Cyrilix21-Jun-07 20:05 
Well, what I don't understand is... looping is a concept, so it's not inherently slow unless your algorithm is crappy. If you have 100 pieces of data, and you want to process them all, you have to create a loop that goes through everyone of them. An array (to my inexperienced self), is quite a simple data structure, basically, an initial value and offsets of size sizeof(type), all contiguous in memory, which should be very fast to access. You only have to loop through all of this data once. You do not have to revisit them. Just something like:

int array_A[100];
int array_B[100];
int array_C[100];

for (int i = 0; i < 100; i++)
{
   array_C[i] = array_A[i] | array_B[i];
}


I don't know if it gets any simpler than that...correct me if I'm wrong.
GeneralRe: How to OR Arrays Without loop Pin
SandipG 21-Jun-07 20:23
SandipG 21-Jun-07 20:23 
GeneralRe: How to OR Arrays Without loop Pin
Mark Salsbery22-Jun-07 6:26
Mark Salsbery22-Jun-07 6:26 
GeneralRe: How to OR Arrays Without loop Pin
Mark Salsbery22-Jun-07 6:34
Mark Salsbery22-Jun-07 6:34 
Questioncopy a file bit -by- bit Pin
Manmohan2921-Jun-07 17:15
Manmohan2921-Jun-07 17:15 
AnswerRe: copy a file bit -by- bit Pin
Mark Salsbery21-Jun-07 17:57
Mark Salsbery21-Jun-07 17:57 
QuestionHow to use GDI+ function Bitmap( Class type, String resource ) Pin
Chen-XuNuo21-Jun-07 16:43
Chen-XuNuo21-Jun-07 16:43 
AnswerRe: How to use GDI+ function Bitmap( Class type, String resource ) Pin
Sameerkumar Namdeo21-Jun-07 16:59
Sameerkumar Namdeo21-Jun-07 16:59 
AnswerRe: How to use GDI+ function Bitmap( Class type, String resource ) [modified] Pin
Mark Salsbery21-Jun-07 17:56
Mark Salsbery21-Jun-07 17:56 
QuestionProblem with Newline in Tooltips Pin
Avril-Sun21-Jun-07 16:01
Avril-Sun21-Jun-07 16:01 
AnswerRe: Problem with Newline in Tooltips Pin
Hamid_RT21-Jun-07 19:03
Hamid_RT21-Jun-07 19:03 
QuestionBIOS Access Pin
Akin Ocal21-Jun-07 10:39
Akin Ocal21-Jun-07 10:39 
AnswerRe: BIOS Access Pin
zhang80060521-Jun-07 16:11
zhang80060521-Jun-07 16:11 
GeneralRe: BIOS Access Pin
Hamid_RT21-Jun-07 19:08
Hamid_RT21-Jun-07 19:08 
QuestionRe: BIOS Access Pin
Akin Ocal21-Jun-07 19:20
Akin Ocal21-Jun-07 19:20 
AnswerRe: BIOS Access Pin
zhang80060521-Jun-07 20:32
zhang80060521-Jun-07 20:32 
GeneralRe: BIOS Access Pin
Hamid_RT21-Jun-07 20:49
Hamid_RT21-Jun-07 20:49 
GeneralRe: BIOS Access Pin
zhang80060521-Jun-07 22:38
zhang80060521-Jun-07 22:38 

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.