Click here to Skip to main content
15,921,990 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to Remove TitleIcon for CDialog if border is Resized VC++ Pin
KingsGambit2-Aug-10 20:35
KingsGambit2-Aug-10 20:35 
QuestionExport CListCtrl data into pdf and doc format Pin
Abinash Mohanty2-Aug-10 19:10
Abinash Mohanty2-Aug-10 19:10 
AnswerRe: Export CListCtrl data into pdf and doc format Pin
KingsGambit2-Aug-10 19:42
KingsGambit2-Aug-10 19:42 
GeneralRe: Export CListCtrl data into pdf and doc format Pin
Abinash Mohanty2-Aug-10 19:55
Abinash Mohanty2-Aug-10 19:55 
GeneralRe: Export CListCtrl data into pdf and doc format Pin
KingsGambit2-Aug-10 20:20
KingsGambit2-Aug-10 20:20 
QuestionINT TO STRING?... help Pin
lgmanuel2-Aug-10 17:46
lgmanuel2-Aug-10 17:46 
AnswerRe: INT TO STRING?... help Pin
Cool_Dev2-Aug-10 18:16
Cool_Dev2-Aug-10 18:16 
AnswerRe: INT TO STRING?... help Pin
steviewang2-Aug-10 18:28
steviewang2-Aug-10 18:28 
GeneralRe: INT TO STRING?... help Pin
Cool_Dev2-Aug-10 18:30
Cool_Dev2-Aug-10 18:30 
Questionbind data in List Box Pin
steviewang2-Aug-10 17:42
steviewang2-Aug-10 17:42 
AnswerRe: bind data in List Box Pin
Cool_Dev2-Aug-10 18:13
Cool_Dev2-Aug-10 18:13 
GeneralRe: bind data in List Box Pin
steviewang2-Aug-10 18:24
steviewang2-Aug-10 18:24 
GeneralRe: bind data in List Box Pin
Cool_Dev2-Aug-10 18:28
Cool_Dev2-Aug-10 18:28 
QuestionRead String Pin
AbhiHcl2-Aug-10 3:30
AbhiHcl2-Aug-10 3:30 
AnswerRe: Read String Pin
«_Superman_»2-Aug-10 3:50
professional«_Superman_»2-Aug-10 3:50 
AnswerRe: Read String Pin
Aescleal2-Aug-10 3:51
Aescleal2-Aug-10 3:51 
AnswerRe: Read String Pin
Luc Pattyn2-Aug-10 3:57
sitebuilderLuc Pattyn2-Aug-10 3:57 
AnswerRe: Read String Pin
Chris Losinger2-Aug-10 4:14
professionalChris Losinger2-Aug-10 4:14 
GeneralRe: Read String Pin
Cedric Moonen2-Aug-10 4:33
Cedric Moonen2-Aug-10 4:33 
GeneralRe: Read String Pin
Iain Clarke, Warrior Programmer3-Aug-10 2:09
Iain Clarke, Warrior Programmer3-Aug-10 2:09 
AnswerRe: Read String Pin
Nemanja Trifunovic2-Aug-10 4:58
Nemanja Trifunovic2-Aug-10 4:58 
AnswerRe: Read String Pin
Moak2-Aug-10 5:20
Moak2-Aug-10 5:20 
GeneralRe: Read String Pin
Emilio Garavaglia2-Aug-10 20:25
Emilio Garavaglia2-Aug-10 20:25 
GeneralRe: Read String Pin
Moak2-Aug-10 22:26
Moak2-Aug-10 22:26 
GeneralRe: Read String Pin
Emilio Garavaglia3-Aug-10 20:17
Emilio Garavaglia3-Aug-10 20:17 
Moak wrote:
The beauty of STL glows in less trivial examples


Oh yes ... but reality is different: it is a matter of fact that vector (sequential indexed), list (sequential) and map (indexed) don't have same interfaces, and that the most of stl algorithm that are "non trivial" works with "sequential indexed" (aka "random access") iterators.

Two siple example:
std::list<int> alist;
std::vector<int> avector;

alist.remove(10); //remove all 10s
avector.erase(std::remove(avector.begin(),avector.end(),10),avector.end());


Until someone doesn't demonstrate me how can I come to write the second example without having the knowledge of at least 20 pages of documentation (yes, I want a 8 y.o. baby coding that!), I will consider "you can use the same algorithm with a wide range of objects... and only have to learn it once = time saved." a pure marketing lye.

(The fake is that vector doesn't have a remove function, hence is not dual to list, and std::remove doesn't remove: it just swaps things around. You cannot know that unless someone tells you)

The pattern itself can be a good idea (iterators as a bridge between collections and algorithms) but the way is implemented is far from being obvious.
That's the point i was considering.

2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:


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.