Click here to Skip to main content
15,901,505 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionStatusBar? [modified] Pin
Software200721-May-10 9:34
Software200721-May-10 9:34 
AnswerRe: StatusBar? Pin
Richard MacCutchan21-May-10 21:39
mveRichard MacCutchan21-May-10 21:39 
QuestionIterator gives error Pin
b-rad31121-May-10 9:28
b-rad31121-May-10 9:28 
AnswerRe: Iterator gives error Pin
Nemanja Trifunovic21-May-10 9:53
Nemanja Trifunovic21-May-10 9:53 
GeneralRe: Iterator gives error Pin
b-rad31121-May-10 9:55
b-rad31121-May-10 9:55 
Questioneliminate zeros in vector of vectors [modified] Pin
b-rad31121-May-10 6:37
b-rad31121-May-10 6:37 
GeneralRe: eliminate zeros in vector of vectors Pin
Aescleal21-May-10 7:35
Aescleal21-May-10 7:35 
GeneralRe: eliminate zeros in vector of vectors Pin
b-rad31121-May-10 7:48
b-rad31121-May-10 7:48 
Hi Ash,

Thanks for replying. You're example matrix is what I'd expect. The way my vector of vectors is set up is that each of the vectors actually contains the data from the particular column (instead of row). This is why I seem to be having trouble.

For example (when referring to your sample matrix):

vector[0] would contain 1 0 3
vector[1] would contain 0 2 2
vector[2] would contain 3 3 3


So for example, the code and predicate that I previously posted which used "remove_if" would make vector[0] = 1 3 which would then give:
1 1 1 
3 2 2
  3 3



but not:
1 1 1
3 3 3 


I should have mentioned that key piece of information (that the vectors hold columnar data instead of row date), sorry about that.

Any ideas for this scenario Confused | :confused:

Thanks,
AnswerRe: eliminate zeros in vector of vectors Pin
Aescleal21-May-10 8:03
Aescleal21-May-10 8:03 
GeneralRe: eliminate zeros in vector of vectors Pin
b-rad31121-May-10 8:11
b-rad31121-May-10 8:11 
QuestionChanging window title in SDI,MDI Pin
Sakhalean21-May-10 2:52
Sakhalean21-May-10 2:52 
AnswerRe: Changing window title in SDI,MDI Pin
David Crow21-May-10 3:12
David Crow21-May-10 3:12 
GeneralRe: Changing window title in SDI,MDI Pin
Sakhalean21-May-10 3:26
Sakhalean21-May-10 3:26 
QuestionRe: Changing window title in SDI,MDI Pin
David Crow21-May-10 3:35
David Crow21-May-10 3:35 
AnswerRe: Changing window title in SDI,MDI Pin
Richard MacCutchan21-May-10 3:19
mveRichard MacCutchan21-May-10 3:19 
GeneralRe: Changing window title in SDI,MDI Pin
Sakhalean21-May-10 3:25
Sakhalean21-May-10 3:25 
GeneralRe: Changing window title in SDI,MDI Pin
Richard MacCutchan21-May-10 5:36
mveRichard MacCutchan21-May-10 5:36 
AnswerRe: Changing window title in SDI,MDI Pin
Hristo-Bojilov21-May-10 6:44
Hristo-Bojilov21-May-10 6:44 
AnswerRe: Changing window title in SDI,MDI Pin
mesajflaviu23-May-10 22:52
mesajflaviu23-May-10 22:52 
GeneralRe: Changing window title in SDI,MDI Pin
Sakhalean24-May-10 0:25
Sakhalean24-May-10 0:25 
GeneralRe: Changing window title in SDI,MDI Pin
Nguyen Van Thai15-Dec-11 19:18
Nguyen Van Thai15-Dec-11 19:18 
QuestionHow to automate word to go to first/last page of the document? Pin
sashoalm21-May-10 2:30
sashoalm21-May-10 2:30 
AnswerRe: How to automate word to go to first/last page of the document? Pin
Garth J Lancaster21-May-10 14:01
professionalGarth J Lancaster21-May-10 14:01 
QuestionHow to get width() of secondary Monitor. Pin
Anu_Bala21-May-10 2:14
Anu_Bala21-May-10 2:14 
QuestionRe: How to get width() of secondary Monitor. Pin
David Crow21-May-10 2:52
David Crow21-May-10 2:52 

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.