Click here to Skip to main content
15,925,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to calculate all columns amount? Pin
gentleguy25-Jun-08 23:36
gentleguy25-Jun-08 23:36 
AnswerRe: how to calculate all columns amount? Pin
Saurabh.Garg25-Jun-08 23:35
Saurabh.Garg25-Jun-08 23:35 
GeneralRe: how to calculate all columns amount? Pin
gentleguy25-Jun-08 23:46
gentleguy25-Jun-08 23:46 
GeneralRe: how to calculate all columns amount? Pin
gentleguy25-Jun-08 23:55
gentleguy25-Jun-08 23:55 
GeneralRe: how to calculate all columns amount? Pin
Saurabh.Garg26-Jun-08 0:05
Saurabh.Garg26-Jun-08 0:05 
GeneralRe: how to calculate all columns amount? [modified] Pin
gentleguy28-Jun-08 1:06
gentleguy28-Jun-08 1:06 
GeneralRe: how to calculate all columns amount? Pin
gentleguy28-Jun-08 23:02
gentleguy28-Jun-08 23:02 
AnswerRe: how to calculate all columns amount? Pin
Iain Clarke, Warrior Programmer25-Jun-08 23:44
Iain Clarke, Warrior Programmer25-Jun-08 23:44 
As has been said, just get on and count them.

Is this data coming in from a text file? Then you can use CStdioFile to read it in one line at a time, and sscanf to process the rows - and maintain a count of number-of-255-s for each column.

Is it in a 2 dimensional array already? Then use a loop, and count whether a number ==s 255 or not.

If you have absolutely no idea, and this is homework (which I suspect, and is why I'm being unhelpful), then you will learn a lot more working with your fellow students and teacher than getting us to do the work.

What is it you are struggling with?

Iain.

Plz sir... CPallini CPallini abuz drugz, plz plz help urgent.

GeneralRe: how to calculate all columns amount? Pin
gentleguy25-Jun-08 23:51
gentleguy25-Jun-08 23:51 
GeneralRe: how to calculate all columns amount? Pin
Iain Clarke, Warrior Programmer26-Jun-08 0:17
Iain Clarke, Warrior Programmer26-Jun-08 0:17 
GeneralRe: how to calculate all columns amount? [modified] Pin
gentleguy26-Jun-08 1:28
gentleguy26-Jun-08 1:28 
GeneralRe: how to calculate all columns amount? Pin
Iain Clarke, Warrior Programmer26-Jun-08 2:23
Iain Clarke, Warrior Programmer26-Jun-08 2:23 
GeneralRe: how to calculate all columns amount? Pin
gentleguy26-Jun-08 15:23
gentleguy26-Jun-08 15:23 
GeneralRe: how to calculate all columns amount? Pin
Iain Clarke, Warrior Programmer26-Jun-08 21:46
Iain Clarke, Warrior Programmer26-Jun-08 21:46 
AnswerRe: how to calculate all columns amount? Pin
Hamid_RT27-Jun-08 8:13
Hamid_RT27-Jun-08 8:13 
GeneralRe: how to calculate all columns amount? Pin
gentleguy28-Jun-08 1:07
gentleguy28-Jun-08 1:07 
QuestionSort by Date Pin
manju#12325-Jun-08 23:05
manju#12325-Jun-08 23:05 
AnswerRe: Sort by Date Pin
Rajesh R Subramanian25-Jun-08 23:09
professionalRajesh R Subramanian25-Jun-08 23:09 
GeneralRe: Sort by Date Pin
manju#12325-Jun-08 23:24
manju#12325-Jun-08 23:24 
GeneralRe: Sort by Date Pin
Rajesh R Subramanian25-Jun-08 23:40
professionalRajesh R Subramanian25-Jun-08 23:40 
GeneralRe: Sort by Date Pin
manju#12325-Jun-08 23:44
manju#12325-Jun-08 23:44 
GeneralRe: Sort by Date Pin
manju#12325-Jun-08 23:45
manju#12325-Jun-08 23:45 
GeneralRe: Sort by Date Pin
manju#12325-Jun-08 23:47
manju#12325-Jun-08 23:47 
GeneralRe: Sort by Date Pin
Rajesh R Subramanian25-Jun-08 23:58
professionalRajesh R Subramanian25-Jun-08 23:58 
GeneralRe: Sort by Date Pin
manju#12326-Jun-08 0:09
manju#12326-Jun-08 0:09 

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.